Can I reuse an Animate object in cocos 2d-x for generated Sprites?
I'm having a cocos2d-x game and inside i generate a Sprite that has a frame Animate. I don't want to create every time this animation so I've tried to make it globally and make object->runAction('myGlobalAnimate') but when a new object is created the frame animation stops from the previous Sprite. How can I use the same Animate to all my nodes (to make this game efficient and resources friendly)?
I think that that you have to clone it Like this:
Give it a try,