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