I am using a Sprite to display the background. I am changing the sprite’s image dynamically at regular intervals. But, the game character sprites are being hidden in the background. How can make the character sprites always overlap the background sprite.
I have tried changing the z-order in
void addChild ( CCNode * child, int zOrder, int tag )but it didn’t work.
I also tried setting the
sprite->setVertexZ(0) with no success.
Which is the best way to do this?