Game Development Reference
In-Depth Information
@>Conditional Branch: Variable [0004:Region] == 2
@>Comment: Insert transfer event here.
@>
: Branch End
@>Conditional Branch: Variable [0004:Region] == 1
@>Comment: Insert transfer event here.
@>
: Branch End
@>
If you can make teleportation puzzles, you can make deserts that cause the player to get lost and send him/her
back to the start of the area as well! You may have noticed that I didn't use Region 4 at all. You could have a desert
nomad sell the player some goggles or breathing apparatus that allows him/her to explore the inner parts of the desert.
In that case, Region 3 would no longer warp the player back to the start of the area. That task would be transferred to
Region 4, as it were. That lets the player explore the oasis, among other things. Let's move on to a similar exercise.
Forest Event Overview
Suppose you wanted to make an area like the Lost Woods in some of the Legend of Zelda games. That is to say, one in
which you can move in one of several directions, only one of them correct. Going the wrong way will send you back to
the start of the area. We can use Regions for that as well. However, what if I told you that we could pull this off using a
single 17 × 13 map? Seems crazy, right? Let's get started!
For this exercise, we'll need the following:
The aforementioned 17
× 13 map (Figure 15-4 ). It should have one Region for each cardinal
direction, as in the following screenshot.
Figure 15-4. A screenshot of the map that must be traversed in a certain order
 
Search WWH ::




Custom Search