Home Simple Shooting Game Student Task
Student Task PDF Print E-mail
Written by Geoff Hill   
Saturday, 03 April 2010 14:10

Your Mission:

After modifying and testing the new version of the target game, complete the following exercises:

Use the Flash Help menu – ActionScript Reference

1. How else you could use the hitTest() function ?
You may have noticed that the dart pops the balloon even if the balloon hits the side of the dart not the tip.
How could you make the balloon pop only when it touches the tip of the dart ?

2. What other keys can be detected using Key.isDown() ?

3. Identify useful methods, properties and event handlers for a MovieClip.

4. Modify the game so that the balloons move faster for every 6 that are hit.
(hint you may need to use modulus e.g. if number%6 == 0)

5. Add a second target movieclip to the game that has its own onEnterFrame function and adds 5 to the score when hit.

6. Add a third version of the target that subtracts points from the score when hit.

7. Add the concept of levels by varying the speed, number of darts and/or number of targets.

8. Try adding obstacles that the dart can't pass through.

Have fun...

 
Copyright © 2012 geoffhill.com.au. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.