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 trialMarie Veverka
12,117 PointsGreen Ground Color
Hi there,
Somewhere between the last video and this video the green color that was used to test the ground was removed and now we just see the moon (which is, of course, much better!). The code I have for the green color is this:
MVGroundNode *ground = [self spriteNodeWithColor:[SKColor greenColor] size:size];
I have tried changing the spriteNodeWithColor to '''[SKSpriteNode spriteNodeWithImageNamed:@"background_1"] size:size]'''
but that doesn't seem to fix it. Any ideas? Thanks!
2 Answers
Amit Bijlani
Treehouse Guest TeacherJust like greenColor
there is a clearColor
so all you have to do is replace the green with clear.
Marie Veverka
12,117 PointsAhh, thanks Amit! Now my first game is finished! Yay!
I actually tried ClearColor (along with TransparentColor), but just realized that I had capitalized the C on clear. Silly me.
Thanks again! Such a fun course. . .
Meek D
3,457 Pointscongrats !!