Changing the initial scene in spritekit
<p><strong>Aim:</strong></p>

<p>To load the scene in Instructions1.swift file as the first scene of the game.</p>

<p><strong>What I did :</strong></p>

<p>So I created 2 new files in my project : Instructions1.sks and Instructions1.swift</p>

<p>Then in GameViewController.swift , I changed the viewDidLoad as follows :</p>

<pre><code> override func viewDidLoad()
    {
        super.viewDidLoad()

        if let scene = GameScene.unarchiveFromFile("Instructions1") as? GameScene
        {
            // Configure the view.
            let skView = self.view as! SKView
            skView.showsFPS = true
            skView.showsNodeCount = true

            /* Sprite Kit applies additional optimizations to improve rendering performance */
            skView.ignoresSiblingOrder = true

            /* Set the scale mode to scale to fit the window */
            scene.scaleMode = .AspectFill

            skView.presentScene(scene)
        }
    }
</code></pre>

<p>However when I load the game, it goes straight to GameScene.swift. I also wrote 'Instructions1' under the Custom Class for  Instructions1.sks . Still no luck unfortunately!</p>

<p>Would appreciate any help!</p>

<p>Thanks!</p>