We will use HitTest to create a game. The game will have shooting stars that we try to catch with a paddle.
In step one we will use the GravBall class and rename it as FallingStar. When we open an AS file and save it with a new name we must also change the name in these places in the code:
We will open the gravball movie and save it as fallingstar. We will replace the ball with a star and make the base class FallingStar.
Download the movie.
INDEX, Detect if an object hit another, Detect if an object hit a target inside another, Catch a Falling Star Game, Add a paddle, Add code to movie for hit and miss, Modify FallingStar to hit and miss, Add code to move the paddle
Next lesson: Strings in ActionScript