Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AlexTheXcodeProgrammer

macrumors newbie
Original poster
Oct 11, 2015
10
0
Hello everybody, I don't know how to fix this issue which prevents me from running my game. Thank you for your time and consideration.
Screen Shot 2015-11-21 at 19.58.28.png
 
I'm going to say you need to change SKSpriteNode to NSObject in the signature.

Then in the first line of the block you'll need a line casting child from an NSObject to an SKSpriteNode.

Yay type safety, right? This definitely keeps you from making mistakes and in no way wastes your time or makes the code harder to read.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.