Hello,
i have the following situation:
i have an element which is an sprite, it has a child that is an sprite and another child that is an atlaslabel. If i run an action on it, for example fadeout, the whole sprite with its children fadeout too. And this is what i want.
Now... i am replacing my sprites with AtlasSprite and i don't know hot to do it...
i have this:
i create a "fish" sprite
with Sprites i would do:
[mySprite addChild:fish z:2 tag:200];
to make fish sprite a child of mySprite and call an action on mySprite to make it happen on everything.
but now with atlassprite i have:
fish = [AtlasSprite spriteWithRect:CGRectMake(197,129,32,32) spriteManager:mgr];
and now i am not able to do
[mySprite addChild:fish z:2 tag:200];
because the sprite won't show, i can only do:
[mgr addChild:fish z:2 tag:200];
but now i don't know how to make that one a child of mySprite.
So my question is: how could i create an AtlasSprite and make it a child of something else than its manager? o how could i create the same effect i intend? (a composition of 2-3 sprites which i can call an action on)
I hope i made myself clear.
Thanks