Friday 9 March 2012

Navigation Test

I've started my navigation now, and so far the player can exit into the hallway, re-enter the room they were in and go into the classroom right beside the first one. I have different functions that I'm building that hold all the info needed to enter each room, allowing me to just call these functions when needed instead of having a lot of repeating code. I also have it set up so it checks which exit you're currently facing so there only has to be one event handler for for changing rooms with an if statement checking which exit they are facing and from which room they were exiting. I have see-through MovieClips over each room that has an event listener attached waiting for the user to click the location they want their person to walk to. I have this so that the user can't click and thus move their person outside the hallway and into the walls. I should be able to get all of my basic navigation done by early next week and then I can work on my combat for the rest of march break.:D

No comments:

Post a Comment