IDs seem like they could be pretty useful, huh? They're not actually used for anything yet though.
Useful state for many game objects - "dead" (
revive() both flip this switch (along with
exists, but you can override that).
WARNING: A destroyed
FlxBasic can't be used anymore.
It may even cause crashes if it is still part of a group or state.
You may want to use
kill() instead if you want to disable the object temporarily only and
revive() it later.
This function is usually not called manually (Flixel calls it automatically during state switches for all
Override this function to
null out variables manually or call
destroy() on class members if necessary.
Don't forget to call
Handy function for "killing" game objects. Use
reset() to revive them.
Default behavior is to flag them as nonexistent AND dead.
However, if you want the "corpse" to remain in the game, like to animate an effect or whatever,
override this, setting only
false, and leaving
Override this function to update your class's position and appearance. This is where most of your game rules and behavioral code will go.
Override this function to control how the object is drawn. Doing so is rarely necessary, but can be very useful.