Finishing the Game
Open the text symbol’s editing stage from the Library. An action that plays the frame la-beled intro in the main scene has already been attached to the last frame of the sections labeled win and lose. These actions, which were included in the original CannonTem-plate.fla file, cause the game to restart after the final text animation is played.
To change the game’s difficulty, adjust speed in the blocker and/or the target. Adjusting the time change in the timeText instance also changes the difficulty (a smaller decrement gives more time).
Congratulations! You have created an interactive Flash game. Now you can play the completed version. In the chapter exercises, you can improve the game and add additional levels of difficulty.
ActionScript 3.0 Elements Introduced in This Chapter
Figure 17.22 lists the Flash ActionScript 3.0 elements introduced in this chapter, which are useful in building complex Flash movies.
Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.