Game Development Reference
In-Depth Information
Ready?
Let us begin. First of all, check Figure 2-3 for the end result.
Figure 2-3. The finished button and exit in place
That's a green button three steps to the player character's right and the exit located five steps to the north. The
button event is two pages, and the exit event is one page. Before I explain what commands to add, let's think about
the situation critically. Our player starts the game and sees nothing of note, save a single button. You want the player
to press the button and receive some sort of feedback after the fact, so that he/she knows he/she did. So, page 1 of the
button event will have a graphic of the green button in a raised position, while page 2 of that event will have a graphic
of the same button in a lowered position. We will inform the player via a text box that the button has been pressed,
before we do that.
Pressing the button will reveal the exit to the north. You are starting to see how this will all work out. In essence
We want a button that the player can press to reveal an exit.
We do not want the exit to be revealed before the player presses the switch.
We want the switch to reflect the fact that the player has pressed it.
How do we do that? With a switch! The final results for the pages are shown in Figures 2-4 to 2-6 . We'll step
through the required instructions for reaching this state next.
 
Search WWH ::




Custom Search