Jump to content

Texture follow curving path


lostincomputer
 Share

Recommended Posts

Do you mean something like this: https://www.gameeapp.com/game/bPWcPaJRF7? This game was hired work for Gamee platform.

Curve is infinite and on every single line of screen I take its value and create two sprites (left white and right black). This is rendered into RenderTexture. I run into performance issues, but solved it in the end (see my old post):

 In the end I have sprite pools and what was key was to put them into group and render this group instead of single sprites.

Link to comment
Share on other sites

  • 1 month later...

Hi lostincomputer,

I wrote that stuff on the greensock forum. Here's a demo of that tileable rope using PIXI. http://codepen.io/osublake/pen/vNjjqa

There's a bunch of code in there, so I just copied the tile rope class into a new pen. It's just a slightly modified version of the PIXI Rope class and the usage is the same. http://codepen.io/osublake/pen/4228bdb83c28bb1c739b4f53f05e1bad?editors=0010

 

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...