Hey folks!
I was wondering why FlxGroup recursively kill()s all members, but revive() is only implemented in FlxBasic?
I.e. if I FlxGroup.kill(), all members call kill().
If I FlxGroup.revive(), only the group revive()s. Members remain kill()ed.
This always seemed confusing to me, and I wondered why it wasn't consistent. Back in 2011, when I started using Flixel (AS3), I just assumed this was an oversight, and modified my local copy of FlxGroup to implement a recursive revive().
However, now that I'm porting the code to HaxeFlixel, I see that it is still using a non-recursive revive(). I could do the same this time around, but I'd like to be staying current with HaxeFlixel updates, so maybe I need to change my approach.
I guess a follow-up question is: if this is the intended behavior, what is the appropriate way to revive a group and all members recursively? Is it:
var grpTest:FlxGroup = new FlxGroup();
grpTest.kill();
grpTest.revive();
grpTest.callAll("revive");
Thanks!