Create a Whack-a-Mole Game in Flash With AS3 – Active Premium
plus

Create a Whack-a-Mole Game in Flash With AS3 – Active Premium

Tutorial Details
  • Difficulty: Intermediate
  • Platform: Flash (Flash Player 10+)
  • Language: AS3
  • Software used: Flash Professional CS4
  • Estimated Completion Time: 2 hours
Download Source Files

It’s Premium tutorial time! In this tutorial, available exclusively to members of Tuts+ Premium, you’ll learn how to create your own version of the classic Whack-a-Mole game – only, our unfortunate creatures of choice will be worms. You’ll be able to modify the speed of the game and the hit boxes of the worms.


Preview

Let’s take a look at the final result we will be working towards:

Click the worms to whack ‘em! You can alter the speed and the hit box size in the Options menu. Of course, if you follow the tutorial, you’ll have much more control over these settings.


Active Premium Membership

Activetuts+ Premium Membership

We run a Premium membership system which periodically gives members access to extra tutorials, like this one! You’ll also get access to Psd Premium, Vector Premium, Audio Premium, Net Premium, Ae Premium, Cg Premium, Photo Premium, and the new Mobile Premium too. If you’re a Premium member, you can log in and download the tutorial. If you’re not a member, you can of course join today!

Also, don’t forget to follow @envatoactive on twitter and grab the Activetuts+ RSS Feed to stay up to date with the latest tutorials and articles.

Add Comment

Discussion 2 Comments

  1. ahmed zahran says:

    there’s a bug in this game you can click more than once on the worm
    so u need to add
    mouseEnabled = false after click the worm to only click it once

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.