Monday, December 1, 2014

Daily Goal

Create Rooms

Hopefully nothing sidetracks me today and I get around to creating rooms because I'd really like to move on to scoring and rewards for performance.

Last night I kept working past the Work Completed post to move the Room Designer switch tile outline F8 visibility toggle function from the SwitchTile class to the RoomDesigner class. Although the function was identical, it didn't turn on and off like it had been. The problem ended up being one of the conditional checks: if (es.indexText.masterAlpha == 1). Because this toggle feature is based off of update() listening for the F8 key, indexText.masterAlpha is a different value depending on which class's update is listening. So, if (es.indexText.masterAlpha == 1) needed to be changed to if (es.indexText.masterAlpha == 0).



No comments:

Post a Comment