Hit Test

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:

  1. public class FallingStar extends Sprite
  2. function FallingStar() { //constructor

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.

Get Adobe Flash player
Download the movie.

NEXT: Add a paddle