When we want to push a new scene we can add a transition. Director::getInstance()->pushScene(CCTransitionFade::create(0.5, fight));
Sadly when we use popScene the Scene is replaced without a transition.
Is it able to add a transition?
A word of warning thought. This is important to call this only after the previous transition is finished. I strongly recommend to add a test that the previous transition if finished before calling this, otherwise it may crash.
Note that there is no typical 2nd argument taking the scene for the transition, one simply passes all the arguments they would pass to the transition’s create method except for the 2nd argument carrying the scene.