ios - How can I make a static path after sprite in cocos2d-iphone? -


there sprite (paper plane) "flows in air". i'd make path follows after (look below) should static(not moving paper plane, appearing after it). supposed make long sprite path, in way move too, , it's not nice. also, should dissapear @ same time sprite. (cocos2d-iphone 3.0)

how can implement it?

enter image description here

what schedule update method runs every second (or faster) checks plane's center , adds small line underneath plane's center position.

you store new sprite in array , when plane disappears screen loop through array , remove each sprite screen.

hope helps


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -