Sprite-Kit transition from one scene to another

112 views Asked by At

I have two SKScenes which I transition in between as follows:

self.skView.presentScene(scene, transition: SKTransition.fadeWithDuration(1.0))

As soon as scene-1 is faded out (after 0.5s) and the screen is black, I would like to execute some code (re-assign camera node, etc.), so that everything is properly setup after the second 0.5s when fading in.

Is there any callback function ready to use for this in-between-event ?

0

There are 0 answers