Thank you for visiting Blazing Games

Building a House

Linking rooms in a house was does exactly the same way as the first episode. Every room has buttons for the doors or exits. Clicking on the button causes the movie to goto a different frame. That being said there is more than the four rooms of the house because each action within a room takes you to a separate scene. In other words, each room has one to three sub-rooms. In other words, clicking on a button within a room takes the player either to a sub-room or to another room. The sub-room that the player is taken to is effected by other factors that the game tracks. These factors are boolean variables and are called flags in programmer terminology. Here are the flags that the game uses:

And here is the complete list of scenes that the player can go to:

The scenes are constants, which is why they are upper case. Keeping variables that are not suppose to change upper case makes it a bit easier on the programmer, though they are not true constants as Action Script 1 doesn’t support constants (perhaps AS3 will). These constants are used by my handleEvent function to direct dialog menu selections to the appropriate scene.

That's about all that's to this episode, though those of you who want to practice their flash skills can certainly try to add transition animations or even a closet and cloths based on which gender the player chooses. The source code for this game has already been released on the BlazingGames.com website.

Previous page
Chapter 2 Page 5

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2006 Blazing Games Inc. All Rights Reserved