What could be causing this? I have a GameObject class that derives from classes that eventually derive from CCNode.
This game object gets deleted when far enough from the player by calling myObject->removeFromParentWithCleanup(true);
The object visually disappears but the destructor is not called until the scene is exited.
The class does not use touchDelegate or anything like that. It only uses scheduleUpdate and has children that also has scheduleUpdate.
Any ideas on why this could be happening?
- The GameObject class has a sprite as child that is running an animation.