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

iOS

iOS whats wrong with this?

Whats wrong with this? its looks like i never can create anything on sprite kit

http://scr.hu/2icp/2puk5

1 Answer

You need to import it

I just created it , i want to make just SKSpriteNode and it doesnt highlight it .

I'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

Im 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.

Hmm, 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

Thank , 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 .