Sunday, November 16, 2014

Daily Goal

Testing

After such a major overhaul, there are bound to be some problems. So I'm just going to test as much as I can and work out any bugs I come across.

Oh yeah, I might try to get the RoomSelector working again with this new setup. Currently clicking on the Room Select button in the title screen does nothing.

I also wanted to write about over complication. I think, naturally, when you're learning something you don't understand you over complicate a process even when the easier solution is sitting in the drawer right next to you. Some time back, while working on Taunt (I think it was), I added a Boolean property called 'busy' in my basic Button class. 'busy' was something I used to toggle the interactivity of a button object by simply changing 'busy' to true or false.

override public function update():void
{
    if (!busy)
    {
         updateInteractivity();
    }
}

Now, this could still come in handy if I have some things in update I want to run and some I don't but there's a Boolean property that comes with Entity called 'active' that toggles update. So I could have just set 'active' to false if I wanted to stop the interactivity of a button. And I've been using a Boolean property that comes with Entity called 'visible' for some time now which toggles the visibility of an Entity so that's why I say 'active' was right next to me the whole time.

No comments:

Post a Comment