I am making a game on Swift 3.0 SpriteKit.
The main menu is in my storyboard on the ViewController. I can easily go from Controller to Controller, from Scene to Scene. But I absolutely do not understand how to go from scene to menu and vice versa.
I am making a game on Swift 3.0 SpriteKit.
The main menu is in my storyboard on the ViewController. I can easily go from Controller to Controller, from Scene to Scene. But I absolutely do not understand how to go from scene to menu and vice versa.
Source: https://ru.stackoverflow.com/questions/584478/
All Articles
let skView = SKView(frame: self.view.frame) sceneView = GameScene(fileNamed: "Level "+buttonTitle) skView.presentScene(sceneView)- KLASTERlet currentScene = GameScene(fileNamed: "Level "+String(thisScene)) let transition = SKTransition.doorway(withDuration: 0.5) currentScene!.scaleMode = SKSceneScaleMode.aspectFill self.scene!.view?.presentScene(currentScene!, transition: transition)- KLASTER