CREATING PUZZLES
WITHOUT SCRIPTING
To create simple puzzles, you can use the two options that
are under the "Variables" tab of the "Hotspot Properties",
which allow you for each hotspot to:
- change the value of one or more variables
when the player clicks on the hotspot,
- enable/disable the hotspot (if the hotspot is
transparent) or show/hide the hotspot (if the hotspot contains a picture)
depending on the value of one or more variables.
Surprisingly enough, with only those two simple options it is
possible to create puzzles as complicate as those found in most commercial first-person
adventure games. You just need to spend a few minutes getting used to them. Try
experimenting with them, and try also understanding how the sample games included in the
package works.
1. How can I prevent the player from entering a room
without having a certain object (such as a torch)?
2. How
can I make my game so that if you turn 3 switches in the right order it will open a door?
More techniques can
also be found here.
1. How can I prevent the player from entering a room without having a certain
object (such as a torch)?
To do that without any scripting,
you must use the two options that are under the "Variables" tab of the
"Hotspot Properties" window. Those options allow to change the value of a
variable, and to disable (/hide) a hotspot depending on the value of one or more
variables.
1. Create a variable called
"torch1". When the player gets the torch (let's assume that the player picks up
the torch somewhere), have the variable "torch1" become 1.
2. Create a hotspot over the doorknob for the door. Make it do nothing when the player
clicks on it, and even make a sound like a door rattle that won't open. Have this hotspot
visible ONLY if "torch1" is 0 (this means, if the player has not picked up the
torch, then the door won't open)
3. Create a second hotspot, overtop of the first hotspot. When the player clicks on this
hotspot, have the door open. Make this hotspot visible ONLY if "torch1" is 1
(this means that when the player picks up the torch, then he'll be able to open the door
and enter the room).
2. How
can I make my game so that if you turn 3 switches in the right order it will open a door?
To do that without any scripting,
you must use the two options that are under the "Variables" tab of the
"Hotspot Properties" window. Those options allow to change the value of a
variable, and to disable (/hide) a hotspot depending on the value of one or more
variables.
1. Create 3 hotspots, one for
each switch;
2. Create 2 variables (let's call them var1 and var2);
3. Change the properties of the first hotspot (the one that the player has to click at
first) so that the value of var1 becomes 1 and the value of var2 becomes 0 when the player
clicks on the hotspot;
4. Change the properties of the second hotspot so that the value of var2 becomes 1 when
the player clicks on the hotspot;
5. Change the properties of the third hotspot so that it is enabled only if var1=1 and
var2=1;
Now the third hotspot will be enabled only if the player has clicked on the first two
hotspots in the right order. To make the door open, go to the properties of the third
hotspot, then select "Go to another frame", and then select a frame in which the
door is open.
More techniques can also be found here. |