Name: ___________________________________________ 49 Lesson 3 Click Ball Copyright Goodheart-Willcox Co., Inc. May not be reproduced or posted to a publicly accessible website. 107. Applying what you have learned, change the expression so the value is 20. 108. Click the Run Application button on the Run Toolbar. Play Level 1 to achieve the victory condition, and see if the bug is fixed. Close the game window when done testing. Transition Tuning Adding a transition from one level to the next allows the player a quick break between levels. A transition allows for the next room to move into place smoothly. This is similar to the transition used in a PowerPoint slide show. Without a transition, the next room would begin abruptly when the first one closes. 109. Display the storyboard editor, and click the Click to add fade in transition button for Level 2. 110. Applying what you have learned, apply a zoom transition. Notice after you have applied the transition that the word zoom appears between Level 1 and Level 2 in the storyboard editor. 111. Run the application. Play Level 1 to achieve the victory condition to see the transition. Close the game window when done testing. Enemies To enhance gameplay, some enemy objects can add to the challenge. The idea here is that if the player clicks on an enemy, the game would end or a life would be lost. 112. Open Level 2 in the frame editor. 113. Click Insert New Object in the pull-down menu. 114. In the Create New Object dialog box, click Graphics and Animations on the left, then click Active on the right. Click the OK button. 115. Click anywhere on the frame to add the active object. The default sprite for an active object is a blue diamond. You will change the sprite on this object. 116. Double-click the active object to open the image editor. 117. Click the Clear button to erase the default image from the canvas. 118. Click the Import button, and navigate to your working folder. 119. Select the Bomb.gif image file, and click the Open button. The Import Options dialog box is displayed, as shown in Figure 3-13. Notice the image file has a pink background. This needs to be removed. Run Application Storyboard Editor Run Application Clear Import Double-click to edit the expression Level 2 is current Goodheart-Willcox Publisher Figure 3-12. To edit an existing condition, double-click it. In this example, double-clicking will display the expression editor. Frame Editor
Previous Page Next Page