My situation is that I have a GameMenuScene
and after the user chooses a level, I want to present the LevelScene
. But I do not want to have the previous GameMenuScene
discarded because the LevelScene
is actually a @property
of GameMenuScene
and whether or not the user completes the level is to be saved as a @property
of LevelScene
, which the GameMenuScene
should be able to access after the user finishes or exits the level. If I simply use presentScene:transition
, the GameMenuScene
is discarded and the information cannot pass back.
My question: Is there a way to stack or push the scenes on top of each other without discarding the previous (preferably using a transition animation)? I could not find a method for this specific purpose in the Apple Documentation for SKScene.
Note: Another StackOverflow answer to a similar question suggests to create a new UIViewController
, present the LevelScene
in there and then present the UIViewController
modally. But I was hoping there was an existing method in the Apple Documentation that I have missed to present the scene itself scene modally without having to create UIVIewControllers
.