Game Development Reference
In-Depth Information
Figure 4-14. The Get Location Info event command
As you can see, Get Location Info first asks for the variable in which you wish to store your relevant information.
I created a new variable named Region just for this occasion. Next, you have to use the second drop-down menu to
define what information you wish to write to said variable. Region ID is preselected here, but it is the last item on the
Info Type list. The others are
1.
Terrain Tag . If you go to the Tilesets tab in the Database, you'll notice a series of buttons
on the right-hand side of the screen that range from Passage at the top to Terrain Tag itself
at the bottom. Terrain Tags are a minor, but useful, way to define different areas, without
the use of Regions. All tiles default to 0 and can go up to 7. A little more on this (and more
general terrain considerations) later.
2.
Event ID . If the player is currently on top of an event square, using this option will write
the specific Event ID to your variable of choice.
3.
Tile ID (Layers 1-3) are the final three items before Region ID. This refers to the tile's ID
internally. I'll leave it as an exercise to you to figure out uses for this particular command.
(I prefer Terrain Tags, to be honest.)
Last, we want to select Designation with Variables , as we want the event to poll the player's position on a
continuous basis.
 
Search WWH ::




Custom Search