tvance929 Posted November 15, 2014 Report Share Posted November 15, 2014 Total newb question and I would have guessed this would have been asked before but I cant find it in a search. I simply want to know when all my stars have been gobbled up in my stars group ( from the Photon tutorial) ... can't seem to find a method I see that I have a children array and there is a lifespan property that might tell me what I want so I could loop through that but I am assuming there is a 'right' way to do this. Thanks! Quote Link to comment Share on other sites More sharing options...
rvizcaino Posted November 17, 2014 Report Share Posted November 17, 2014 Hi, you can count the items in groups using group.countLiving() or group.countDead() Quote Link to comment Share on other sites More sharing options...
tvance929 Posted November 17, 2014 Author Report Share Posted November 17, 2014 .total worked for me ... very obvious. Sorry for the dumb question. Quote Link to comment Share on other sites More sharing options...
rvizcaino Posted November 17, 2014 Report Share Posted November 17, 2014 Glad it works, you can mark the post as answered. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.