I have a sprite and i want run some animations, but over the sprite with some alpha in my animation or not.
By example, imagine you have one character (Son Goku) and you want run “aura” animation over it. You will see goku with aura animation.
How you do it ?
For running animation, cocos2d need a ccsprite and replace it when animation running. I can’t add this animation to my character sprite.
I have achieved it whith creating “temp” sprite, add animation to temp sprite, add temp sprite as child of character sprite, but I don’t like it.
I think there is another better way…
Thanks for your help and sorry for my english 😉
You cannot do this without creatimg an additional sprite. But you can incapsulate it. For example, by creating CCNode subclass for your character, which will contain both hero main sprite and animation sprite. In such way you will isolate all animation code inside this class.