isfuturebright Posted November 12, 2013 Share Posted November 12, 2013 Setting the exists flag to false on a group is not stopping it's children from being updated. When I set the visible flag everything in it stops rendering. I had to do a setAll("exists", false) to get it to work. Shouldn't it work for both exists and visible flags? Link to comment Share on other sites More sharing options...
rich Posted November 13, 2013 Share Posted November 13, 2013 Hmmm good point. Right now a Group doesn't have an update function at all - children are updated automatically by iterating through the display list. What I'll do for now is make a child check its Group exists value too, but what ought to be done longer term is check it on a Group level so if can skip checking all the Group children if the parent exists is false, but that will require using a different method to run through the list of game objects. isfuturebright 1 Link to comment Share on other sites More sharing options...
isfuturebright Posted November 13, 2013 Author Share Posted November 13, 2013 I see. Thanks for the reply rich Link to comment Share on other sites More sharing options...
rich Posted November 13, 2013 Share Posted November 13, 2013 Ok this is now done in the dev branch version. Link to comment Share on other sites More sharing options...
isfuturebright Posted November 13, 2013 Author Share Posted November 13, 2013 Thanks rich. Link to comment Share on other sites More sharing options...
Recommended Posts