Properties level xcode 7!!

Seriously strange, just changed my if let level!CookieAtColumn(column: row, row) by erasing the exclamation cause it was giving me an error saying optional force unwrapping shtt so i erased the ! then changed GameScene var level: Level1! to var level: Level1 (just erased the !) and now on GameScene file theres an error that tells me Property 'self.level' not initialized at super.init call. Heres the code;| Any ideas?


P.s only been coding for 1 week.

\\ Game Setup

required init?(coder aDecoder: NSCoder) {

fatalError("init(coder) is not used in this app")

}


override init(size: CGSize) {

super.init(size: size)<----------------{{Property 'self.level' not initialized at super.init call}}

anchorPoint = CGPoint(x: 0.5, y: 0.5)


if i put self.level here under the override/super init then the error switches here and says

self.level<-------------------------{{Expression resolves to an unused I-value}}


Sincerely,

jc

Maybe you are not assigning a non-nil value to GameScene's `level`.


In many cases when `!` is causing sort of fatal errors, what you need is not removing `!`, but assigning a non-nil value before the property is used.

Remember, GameViewController's `level` and GameScene's `level` are different things and you need to add code to assign a non-nil value to GameScene's `level` as it does cause the unexpectedly found nil error.

Properties level xcode 7!!
 
 
Q