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
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.


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
D’oh, I can’t believe we missed that. Thanks for pointing it out, and giving a solution!