Game Development Reference
In-Depth Information
Second, we have the engine of what will make this whole event work in the first place.
In this portion of the event, we're checking to see if the player is standing on the two squares
to the left of the dragon statue. If he/she is, we add one to the value of X and use a new event
command.
Set Event Location allows you to change the position of any event (including the triggering
event itself, if you would want to do so for any reason) on the map. What we want to do is have
the Action Button event used for the dragon statue move to meet the player's movement. It's a
sneaky little trick that gets the job done in this case. See Figure 6-4 for a screenshot of what the
command entails.
Figure 6-4. The Set Event Location event command
From here, you can select which event to move. Then you can choose to designate a specific location for the
event, use variables to determine the location, or exchange it with another event's location. In the case of events with
graphics, you can also determine whether they retain their former facing or change to a different direction. You can
probably already tell what that +1 to X is about. Because the player is standing one space to the left of the statue,
we have to move the event one space to the player's right, so that he/she can interact with it while facing eastward.
 
Search WWH ::




Custom Search