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 trialDmitri Mikhalev
4,462 PointsWhat is "IsActive" in Invader good for?
What am I missing here? isn't an invader automatically active if it is not dead or hasn't scored?
If yes, why do we need a property for that?
1 Answer
Steven Parker
231,261 PointsFrom what I remember of that exercise, having an "IsActive" attribute could be handy. For example, if a count of invaders with IsActive status returned 0, you'd know that the game was over and the player has won.
For future questions please provide more information, like a link to a specific course page. Take a look at this video about Posting a Question.
Dmitri Mikhalev
4,462 PointsDmitri Mikhalev
4,462 PointsThank you! I'll repost in a better way soon!