ios - Should we define a position to CCAnimation? -


well, asking question ccanimation example in book "learn cocos2d". in example (ch6), don't see code define position ccanimation, see ccsprite-derived class, called "ship", given position.

why? ccanimation knows animate?

thanks

ccanimation has no position. animation changes sprite frames (textures) of sprite (the ship). therefore ship's position determines animation played.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -