I created an enemy class that handles the animation, chipmunk and any other information that I would need. I can create a sprite from the layer and use the enemy class for all other information, but when I want to create the sprite form within the class AND animate it, I get an error. The error fails when I try to add the AtlasSpriteManager as a child from within the class. If I comment that line of code everything works minus the sprites being displayed of course.
If it is any help I created my enemy class using http://juanmunozar.blogspot.com/ as a guide.
So my two questions are
1. Should the enemy class inherit from NSObject, AtlasSprite, Sprite or CocosNode?
2. How can I handle animation from within the enemy class without adding AtlasSpriteManager as a child.
I would rather the enemy class handle the sprite creation and animation than the layer for obvious reasons.
I appreciate all the help!