The following three callback methods are called when one Scene is transitioned into another in Cocos2D.
- -(void) onEnter
- {
- // Called right after a node's init method is called.
- // If using a CCTransitionScene: called when the transition begins.
- [super onEnter];
- }
- -(void) onEnterTransitionDidFinish
- {
- // Called right after onEnter.
- // If using a CCTransitionScene: called when the transition has ended.
- [super onEnterTransitionDidFinish];
- }
- -(void) onExit
- {
- // Called right before node's dealloc method is called.
- // If using a CCTransitionScene: called when the transition has ended.
- [super onExit];
- }