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 Build a Game with Sprite Kit Artificial Intelligence and Sound Spawning Enemies

Vineet Tiwari
Vineet Tiwari
6,609 Points

The green bar on the ground.

How do I get rid of the green bar that is covering the surface of the moon.

4 Answers

Change your SKColor to clearColor to have it be transparent

THGroundNode *ground = [self spriteNodeWithColor:[SKColor clearColor] size:size];

I did this course a little while back, would you mind posting your code to see where you're at in the project?

Vineet Tiwari
Vineet Tiwari
6,609 Points

THGroundNode *ground = [self spriteNodeWithColor:[SKColor greenColor] size:size]; the code above is causing the green bar to be present on the scene. I was just wondering as to what I can replace this with so that the bar goes away. Also, my entire code in on github : https://github.com/vineetTiwari/SpaceCat

Vineet Tiwari
Vineet Tiwari
6,609 Points

Thank you Mr Ruiz; it works.