Name: ___________________________________________ 125 Lesson 10 Spawning Copyright Goodheart-Willcox Co., Inc. May not be reproduced or posted to a publicly accessible website. 31. Select animation direction node 16, and remove the segment from (465, 0) to (640, 32). 32. Select animation direction node 24, and remove the segment from (400, 0) to (525, 32). 33. Click the OK button to close the image editor. The Platform 1 object now has four options to display a platform with a hole. Programming will be used to control which version is displayed. 34. If needed, reset the position of the Platform 1 object to (0, 210). Avatar Movement Spiko is the player avatar for this game. An avatar is a game object used to represent the player in the game. It is the player character. In this game, Spiko will need to move to lower platforms as the platforms move upward. If Spiko leaves the game frame, he will be destroyed. 35. Rename the HEDGEHOG object as Spiko, and set its position at (435, 208). This places Spiko two pixels above the platform. 36. Rename the Bonus 1 object as Heart, and set its position at (280, 195). 37. Applying what you have learned, clone the Platform 1 object. Create a single clone. 38. Rename the clone as Platform 2 if it is not already named that, and set its position at (0, 300). This places Platform 2 below Platform 1 with some space between them. 39. Applying what you have learned, copy the Platform 1 object, and paste one copy at (0, 390) and a second copy at (0, 480). 40. Copy the Heart object, and paste copies at (93, 286), (399, 374), and (191, 462), as shown in Figure 10-7. 41. Applying what you have learned, insert a Counter object, and name it Counter_Random. 42. Drag the Counter_Random object anywhere outside of the frame. This prevents the counter from being seen during gameplay. 43. Insert a Score object, and change its size to 32 wide and 50 high. 44. Set the position of the Score object at (640, 50). 45. Applying what you have learned, change the color of the number in each frame of the Score object to light blue. Transparency swatch Hole is created Goodheart-Willcox Publisher Figure 10-6. A hole is created in the platform by setting a portion of it to transparent.
Previous Page Next Page