Howdy, been working on a tower defense game for a bit and would like to draw some borders around my sprites to assist with collision detection.
My class hierarchy looks like this right now.
NSObject > TAtlasSprite > Creep
TAtlasSprite is just an atlas sprite that can receive touch events.
Creep represents a guy trying to run through my field of towers.
Creep is instantiated and added to the layer. I can see it, touch it, that all works fine. But I would like to be able to draw a border around it and I'm not sure where to stick the draw method.
I changed TAtlasSprite to inherit from cocosnode and i thought if I added a draw method to creep then it might get called, but it doesn't.
I'm clearly missing a piece to the puzzle! What am I doing wrong? Thanks
If it helps, I'm using cocos2d 0.73. I don't care if it draws over or under my sprite, I just want to see a border.