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

Error - SpaceCat

Hi guys,

I'm just going through the Build a Game with Sprite Kit course but getting this error, not sure what've I done .. Seems like I don't everything correct? Following the video with Amit .. Currently on the 'Contact Detection using SKPhysicsContactDelegate' video.

Image link below

http://imgur.com/RIuOIEd

Many thanks!

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hi Yasin,

It looks like you are missing a curly brace to close the if statement where you are experiencing that error. If you add a closing brace there does the error go away?

If it doesn't, what does the error say when you click on the red error indicator?

Hi Ben,

Thank you for you response. I have a closing bracket at end of the if statement, please see the image link below, image from Amit video -

http://imgur.com/3fUOuXr

And this is my error code I am getting

http://imgur.com/G7NQvvq