Checking if an FlxSprite is dead?
-
Hey guys, how would I check if an FlxSprite is dead? Is there a built in variable for it, or should I add one? If it's the latter, would I just check if the health is less than or equal to zero?
Thanks in advance!
-
Yeah, there's a flag called
alive
(See more here)
-
Thanks for the help!
-
@Jahn_Bot funny thing is, in older versions of Flixel it was "dead" instead of "alive" that you needed to check for, but I guess someone decided that "alive" made more sense :)