Game Development Reference
In-Depth Information
Figure 11-5. The map where the statue manipulation puzzle takes place
We have a pair of dragons that will be our statues for this exercise. The rock crosses on either side of the area are
actually events that will disappear once the puzzle has been completed. The same goes for the three rocks blocking
the staircase at the northern end of the area.
Overview
Here are the things that we need, in no particular order:
Have an event that allows the player to start the puzzle (we'll place it on the gravestone).
Once the puzzle has started, we freeze the player character in place and scroll the map up a
few squares, so that the statues are at the center of the player's vision.
Set up an event that translates the player's arrow keys presses into statue movement. This
event could also allow the player to press a button to cancel out of the puzzle (if the player
would rather go do something else, for example) without completing it.
Make the extra rocks disappear once the puzzle has been solved.
 
Search WWH ::




Custom Search