Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Aurelian Spodarec
7,369 PointsiOS whats wrong with this?
Whats wrong with this? its looks like i never can create anything on sprite kit
1 Answer
Ryan Farber
5,329 PointsYou need to import it
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsI just created it , i want to make just SKSpriteNode and it doesnt highlight it .
Ryan Farber
5,329 PointsRyan Farber
5,329 PointsI'm learning how to use the code on here. Do you have something like this next to your import on your picture? '#'import '<'SpriteKit/SpriteKit.h'>'
Without the ' that is
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsIm on my h file where i create things . But even on my m file and on my h file don't recognise the SKSpriteNode witch should do. When i download the code from Amit , and add my own player , it works. Its just when i start from my own it never works.
Ryan Farber
5,329 PointsRyan Farber
5,329 PointsHmm, I'm not entirely sure what you are doing. I would compare the side-by-side of Amit's code and your own current code to see the difference. Sorry I couldn't be much more help
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsThank , you . The thing is , that there nothing different. i mean the Xcode does not recognise the SKSpriteNode. But when i get Amit project, and create it there , it just works .