The title of this post really reveals everything I have to ask, but it's really bugging me. I noticed AtlasSpriteManager, like most things, is a subclass of CocosNode, which has, as most everyone knows, a position property. If I change the AtlasSpriteManager's position, will the position of it's children be moved as well?
Does AtlasSpriteManager.position move it's children?
(3 posts) (3 voices)-
Posted 2 years ago #
-
The answer to this question, is YES.
Why would you want to do this? Well, it's a convenient solution for compound sprites; Big sprites made up of smaller sprites.
Because it's a CocosNode, you can run actions on it, play with visibility, position etc.
For example, I'll be using it to create moving platforms in my game, made up of individual tiles.
Posted 2 years ago # -
Hi,
I posted a similar question here as you never see in the samples, the manager being positioned. The manager gets added to self with a z index, and sprites are added to th emanager and positioned - but I haven't found a sample where the manager is explicitly positioned.
http://www.cocos2d-iphone.org/forum/topic/2792
i
Posted 2 years ago #
Reply
You must log in to post.