Cocos2D AtlasSprite gotchas...
ven., mai 8, 2009 at 8:04 AtlasSprite is a great way to organize your animation and increase the performance by using a single image with all the frames for your animation, here is an example:

But as I was trying to use it, I had a few issues, here is how to use the AtlasSpriteManager correctly:
- You need to create a AtlasSpriteManager first to hold the texture of the sprite sheet.
- You need to add the AtlasSpriteManager to the scene (otherwise, your AtlasSpriteS using that manager wont be visibles)
- You need to pass that manager instance to your AtlasSprite init method.
It seems pretty clear now, but it wasn't the first time I implemented it.
atlassprite,
cocos2d in
iphone, obj-c & cocoa 