Name: ___________________________________________ 53 Lesson 3 Click Ball Copyright Goodheart-Willcox Co., Inc. May not be reproduced or posted to a publicly accessible website. 160. Place the Button object below the Hi-Score object. It can be placed in the border of the background image. 161. Applying what you have learned, rename the Button object as Button_Quit. 162. Double-click the Button_Quit object on the frame. A dialog box is displayed for editing the text. Change the text to Quit, and click the OK button to update the object. 163. Applying what you have learned, insert another Button object, place it to the right of the Button_Quit object, rename the new object Button_Replay, and change the display text to Replay. 164. Move the two button objects so they are centered on the frame with some space between them. Users expect these types of buttons to be at the bottom-center of the interface. 165. Applying what you have learned, display the event editor for the Winner frame. 166. Applying what you have learned, add a new condition, and program the following pseudocode. Refer to Figure 3-16. IF the Button_Quit object is clicked, THEN end the application. 167. Applying what you have learned, add a new condition, and program this pseudocode: IF the Button_Replay object is clicked, THEN restart the application. 168. Test play the application. Make sure you test the enemies on Level 2 frame and the high score and the buttons on the Winner frame. 169. Debug any errors as needed. Compile to a Distributable Format So far, you have test played the game at various points during the game build. It is important to make all final changes to the game before it is compiled into a file that can be distributed to players. This distributable file cannot be modified. Clickteam Fusion 2.5 can compile games into a few types of distributable files, but the free version can only compile HTML 5 format. This format can be placed on web pages. 170. Click the Build and Run button on the Run Toolbar. The Save HTML 5 Project dialog box is displayed, as shown in Figure 3-17. 171. Click in the Project name: text box, and enter Click Ball. Run Application Build and Run Button object Condition to check Goodheart-Willcox Publisher Figure 3-16. To program a button, click the button object in the New Condition dialog box, and select the condition Button clicked? in the shortcut menu.
Previous Page Next Page