Copyright
by
The
Goodheart-Willcox
Co.,
Inc.
42 Introduction to Video Game Design
Next Room
Currently, the player cannot get to level 2 once level 1 is defeated. This is because the
programming currently ends the game when 10 points are achieved on level 1, instead of moving the
player to level 2. Why? This is the victory condition you programmed earlier, to end the game when
10 points are achieved on level 1. The victory condition for level 1 needs to be modified:
IF the score is 10, THEN go to the next level (room).
139. Open the Object Properties dialog box for OBJ_Ball.
140. In the Event: column, select Left Pressed.
141. In the Actions: column, right-click on End Game and select Delete from the shortcut
menu.
142. Click the Main 1 tab.
143. Drag the Next Room button into the Actions: column, Figure 3-15. The Next Room
dialog box is displayed.
144. In the Next Room dialog box, click the select button to the right of the Transition: text
box and choose Fade out and in from the menu that appears.
145. Click the OK button to close the Next Room dialog box.
A transition allows for the next room to move into place smoothly. This is similar to the
transitions used in PowerPoint slide shows. Without a transition, the next room would begin
abruptly when the first one closes. Also note as you test play the game that it no longer ends. This
is because you have removed the “end game” action. You will correct this in the next sections.
Level 3
146. Duplicate room1 (level 2) to create room2 (level 3).
147. Change the caption to Level 3.
148. Modify the wall layout for more challenging gameplay.
149. Change the background.
Next
Room
When the score
is 10, the next
room is
displayed
Figure 3-15
Previous Page Next Page