Copyright
by
The
Goodheart-Willcox
Co.,
Inc.
166 Introduction to Video Game Design
82. Drag the Set Path button from the Move tab and drop it into the Actions: column. The
Set Path dialog box is displayed, Figure 10-11.
83. Enter 2 in the Speed: text box.
84. Click in the At end: text box and select Reverse from the shortcut menu. This will cause
the spider to walk back to the starting point.
85. Click in the Relative: text box and select Absolute from the shortcut menu. This is
absolute because you used the absolute coordinate location of the spider.
86. Click the OK button to save the action.
Now, the spider will move along the path, but the player can run over it without anything
happening. The OBJ_Spider object needs to be programmed to be an obstacle. You also need
to program the game so the player begins with three lives. Running into the spider will remove
one life from the player.
87. Add an event for colliding with the avatar.
Path for
the spider
Figure 10-10
Set Path
Select the path
Enter the speed
Set the spider
to reverse
Figure 10-11