I have a phantom and I want to run some animations, but my animation is inspired with some alpha or not. For example, imagine that you have a character (Son Goku) and you want to run this "Aura" animation. You will see Goku with Arrow Animation.
How do you do this? To run the animation, cocos2d requires ccsprite and has to change it when the animation is turned on. I can not add this animation to my character Phantom
I have achieved this by making the temp sprite as the "Temp" phantom, adding animation to make a temporary phantom, adding the temp sprite as the child of character phantom, but I do not like it. I think there is another better way ...
Thank you for your help and sorry for my english;)
You can not do this without making such an extra sprite. But you can wander it. For example, by creating CCNode subclasses for its character, in which the hero will be both the main phantom and the animation phantom. This way you will separate all the animation code inside this class.
Comments
Post a Comment