Create a Three Shell Game in Flash – Active Premium
plus

Create a Three Shell Game in Flash – 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

The shell game is a cliché of street corners in black and white movies and modern cities: the hustler puts a pea under one of three shells, and swaps the shells around rapidly, challenging you to pick the shell with the pea underneath. The punter will typically get it correct… right up to the point where big money is at stake, or when the punter isn’t one of the hustler’s cronies.

In this tutorial, exclusive to Premium members, you’ll learn how to create your own version of the shell game – except without the cheating!


Preview

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

The tutorial covers both the design and the coding of the game, and uses TweenMax to make the shells move along a curved path.


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.

  • http://hardwareacceleratedreality.com Joseph Clover

    Hey,
    Great tutorial. I seen that you used TweenMax to make the tutorial. I don’t have a problem with that but some people ( like myself ) enjoy using ‘pure’ AS3 and don’t enjoy using external libraries because their stubborn :)

  • James

    Nice Game. Thanks for sharing.