tvance929 Posted November 15, 2014 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! Link to comment Share on other sites More sharing options...
rvizcaino Posted November 17, 2014 Share Posted November 17, 2014 Hi, you can count the items in groups using group.countLiving() or group.countDead() Link to comment Share on other sites More sharing options...
tvance929 Posted November 17, 2014 Author Share Posted November 17, 2014 .total worked for me ... very obvious. Sorry for the dumb question. Link to comment Share on other sites More sharing options...
rvizcaino Posted November 17, 2014 Share Posted November 17, 2014 Glad it works, you can mark the post as answered. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts