Pausing a sprite kit scene
Use SKView‘s isPaused property: Swift: scene.view?.isPaused = true Objective C: self.scene.view.isPaused = YES; This will stop all actions and physics simulation.
Use SKView‘s isPaused property: Swift: scene.view?.isPaused = true Objective C: self.scene.view.isPaused = YES; This will stop all actions and physics simulation.
the reason this doesnt work is that you are creating a NEW instance of GameViewController and then you’re calling gameOver on that. What you really want to do is reference your existing GameViewController theres a few ways to do this, I’ll give you one example. add a viewController property to your GameScene class class GameScene … Read more
Having a Single View Controller and Multiple Scenes You could use single view controller (which is actually a default state of SpriteKit game template) and have multiple scenes. So you will have GameViewController and LandingScene, GameScene and possible some other scenes, like LevelSelect scene or something like that. In GameViewController, you initialize your scene for … Read more