Norway


I’m working in SpriteKit and I want to the when it’s pressed. I have tried
newGameButton.texture = SKTexture(imageNamed: “noShadow”)
in my buttons function. This produces the error “Unexpectedly found nil while unwrapping an Optional value” . Anyone have a better way of doing this? Thanks!



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here