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?
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
Post a Comment