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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -