Is there actually a way to wrap or scroll the texture of a rope?

Recommended Posts

The rope documentation says


A Rope is a Sprite that has a repeating texture. The texture will automatically wrap on the edges as it moves.

As the texture moves? The rope? I've tried moving the rope around and adjusting the crop and frame of the texture, but nothing works.

I'm using ropes for waves in my game (orangesea.oddkraken.com), and I want to scroll the texture by while keeping the waves moving up and down, so it looks like the player is moving to the right.

Is there a better way to go about this?


Share this post

Link to post
Share on other sites

I can't catch a break here. I tried changing it so the waves are TileSprites instead of Ropes. It already doesn't look as good, but there's also a glitch at the top edge of each TileSprite image:


Those horizontal lines that I boxed in red are the top edges of each wave image. I'm sure there are no opaque pixels there in the PNGs, so what's going on here?

You can take a look at the update at http://orangesea.oddkraken.com/test EDIT: I've taken this test page down.

Any help would be greatly appreciated! Thanks.

Edited by oddkraken
subpage no longer exists

Share this post

Link to post
Share on other sites

WebGL has this problem, I think, where if your textures are packed too tightly in your atlas they bleed over like that. Try adding some margin before packing your sprites.

BTW: Phenomenally beautiful game you've got there. That art style is great!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.