Game Development Reference
In-Depth Information
After each move, check to see if the statues are on their pedestals. If they are, we flip a switch
confirming that the puzzle has been solved. Otherwise, we allow the player to move the
statues again.
The two events that will represent the statues
An invisible event that blocks the player from moving while the puzzle is in progress
First, place the assorted rocks that will prevent the player from passing to the other side of the area until he/she
completes the puzzle. Next, place a green dragon event at (12,10) and a red dragon event at (14,8). I specified color to
differentiate the two statues. This will be important, as we want the green dragon to go on the left pedestal and the red
dragon to go on the right pedestal. The pedestals are at (11,8) and (15,8) and are the golden cobblestone tiles present
in tab A of the Exterior tileset.
Creating the Puzzle Trigger (Interaction) Event
The first event we're going to fill out is the first one that the player will interact with, namely, the gravestone event.
When the player interacts with the gravestone, we want a message to be displayed, then the game will ask if the
player wants to touch the gravestone. If he/she does, we scroll the map up to center the player's vision on the statues.
We need to differentiate between when the puzzle is active and when it is not. For that, we can have a switch called
StatuePuzzleStart . When it is off, the puzzle is inactive. When it is on, the puzzle is active. Check the following
code to see the gravestone event in its entirety and note the extra things that it has. Some of it may not make sense
currently, but it should by the end of this exercise.
@>Conditional Branch: Switch [0029:StatuePuzzleDone] == OFF
@>Conditional Branch: Switch [0030:StatuePuzzleStart] == OFF
@>Text: -, -, Normal, Bottom
: : The gravestone says: Place the statues
: : on their pedestals to open the way forward.
@>Text: -, -, Normal, Bottom
: : Will you touch the gravestone?
@>Show Choices: Yes, No
: When [Yes]
@>Scroll Map: Up, 5, 4
@>Set Move Route: Player (Wait)
: : $>Direction Fix ON
@>Text: -, -, Normal, Bottom
: : Press A to reset the statues.
: : Press a directional key to move the statues.
@>Control Switches: [0031:ButtonPressOFF] = ON
@>Jump to Label: PuzzleStart
@>
: When [No]
@>
: Branch End
@>
: Branch End
@>Label: PuzzleStart
@>Control Switches: [0030:StatuePuzzleStart] = ON
@>
: Branch End
 
Search WWH ::




Custom Search