Game Development Reference
In-Depth Information
Figure 15-3. A screenshot of the map to be used for this exercise
The Desert Event
We need the following things to complete this exercise:
A Region ID (I'm using 3) that will trace an invisible border around the map. Crossing that
border will send the player back to the start of the area.
A pair of Regions (1 and 2) that will transfer the player out of the desert area
Some doodads to dot the map. I use cacti.
A Parallel Process event that will handle all of the region-based shenanigans
As everything else is already established in the screenshot of the map, let's skip ahead to our Parallel Process
event. It isn't anything that we haven't done before, as you'll quickly see.
@>Control Variables: [0002:X] = Player's Map X
@>Control Variables: [0003:Y] = Player's Map Y
@>Get Location Info: [0004], Region ID, Variable [0002][0003]
@>Conditional Branch: Variable [0004:Region] == 3
@>Text: -, -, Normal, Bottom
: : You get lost in the desert!
@>Transfer Player:[031:CHAP15EXE2] (004,028), Up
@>
: Branch End
 
Search WWH ::




Custom Search