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.

  • How does the scene appear on the screen? - Markov
  • The button is pressed, the name of the button is read, the name is collected and goes to the desired scene. buttonTitle is the name of the button. let skView = SKView(frame: self.view.frame) sceneView = GameScene(fileNamed: "Level "+buttonTitle) skView.presentScene(sceneView) - KLASTER
  • Go through the scenes in the game itself. let 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
  • After all skView somewhere is added? I think that it is necessary to remove it from the view to which it was added - markov

0