I have a scene that calls the following using a transition like this:
SKTransition *transition = [SKTransition revealWithDirection:SKTransitionDirectionDown duration:0.5];
SKView *skView = (SKView *)self.view;
SKScene * scene = [[GameOverScene alloc] initWithSize:self.size];
scene.scaleMode = SKSceneScaleModeAspectFill;
[skView presentScene:scene transition:transition];
Elements that make up GameOverScene(buttons, images, etc.) are added by the method init.
The problem is that the transition is not observed. One scene immediately goes to another.
I assume that the transition occurs before the next scene can create its own elements. I tried to move the creation of the next scene to didMoveToViewwithout success.
For testing purposes, I tried to delay the line presentSceneat times even more than 2 seconds. When I do this, I barely see the final frames of the transition.
How can I do it? What is the right way to build the next scene and perform the transition process.