Monday, November 17, 2014

Work Completed (11/16/2014)

The goal was:
Testing

A lot of testing was done. A bunch of bugs were found. Various things were adjusted and/or improved. It's a bit of a blur in my head this morning.

I made a couple more helpful functions in my base class EntityPlus and now have a pretty nice bundle of interactivity switches. They all affect any entity the caller has added to the world.

epActive() uses Entity's active property to turn on or off the update
epVisible() uses Entity's visible property to turn on or off the render (visibility)
epInteractive() turns the Entity's hitbox on or off

All three require one argument, a Boolean, to specify on or off. They can also take two optional arguments; _includeThis:Boolean = true in case you don't want the parent entity to be affected, and _exclude:Entity = null in case you want a particular entity besides the parent to be unaffected.

There's a fourth function to go along with this bundle: epInteractiveAndVisible() which simply calls both epInteractive() and epVisible().



No comments:

Post a Comment