I’m currently working on a sprite kit - I have a first level complete. My game scene calls from encounterManager for the scenes I have prepared.
I am curious as if it is possible to duplicate the game scene in order to set-up a secondary level? I have tried this in which the build is successful in reference to when selected ‘game scene2’ runs.
My problem is that now I have done this as a trial the game scene appears but is completely still. I then get an error directing me to one statement in code which is as follows :
If self.physicsBody!.velocity!.dy > 300 {
self.physicsBody!.velocity.dy = 300
}
I get the error :
Thread 1: Fatal error: unexpectedly found nil while unwrapping an optional value.
This seemed to run fine operating at one game scene and all of a sudden has referred this error message..
I am fairly new to Xcode and have tried to get my head around optionals but I can’t understand how to overcome this or being able to re-tailor the statement?