Build 10 classic Flash games and learn game development along the way with this ultra-fast paced game development course.

If you love this blog, this is the book for you.

Buy the book

Get the source code of 12 commercial Flash games, which have been loaded more than 50 million times!

Learn from real world successful examples.

Get it now

Box2D for Flash Games teaches you how to make Flash physics games from scratch with the most advanced features.

Create the new Flash game smashing hit.

Buy the book

Create a Flash game like Totem Destroyer

An interesting game released these days is Totem Destroyer

Totem Destroyer

Your mission is to destroy the totems without letting the golden Idol (aka Tot) fall into the ground.

It’s a game that can be easily done with the AS3 physics engine Box2DFlashAS3, recently updated at version 2.0.1

I already talked about it in the post Playing with Box2DFlashAS3, now it’s time to make something more serious.

To make this prototype, I just changed some values in the demo script provided with the package and I made the beginning of a cute game in a few minutes.

Since it’s not a final game, I just created a level, made the ground indestructible and the other bodies destructible by pressing the mouse on them.

The aim of the game is to destroy a number of blocks without letting the sphere touch the ground, but at the moment there aren’t any rule… you can even destroy the sphere… but let me show you the game:

In order to do this prototype, as said, I only changed the files Main.as, Test.as and TestStack.as that you can find in the distribution package. And obviously the PhysTest.fla.

Now, let’s see the to-do list:

Counting the blocks I need to destroy to complete the level
Preventing the ball to be destroyed
Checking collision between the ball and the ground
Attaching fancy graphics to assets
Commenting the code

Download the package with my modifications and you are a Box2DFlashAS3 guru and want to publish the next step, you’re welcome… or wait for me to do it.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (31 votes, average: 4.58 out of 5)
Loading ... Loading ...
Flash Templates provided by Template Monster are pre-made web design products developed using Flash technology.
They can be easily customized to meet the unique requirements of your project.
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has 15 comments

  1. Luiz Fernando

    on July 20, 2008 at 5:42 pm

    Cool! :D
    I love the game and I really wish to see a tutorial about this game :)

    This will be interesting :)

  2. David D

    on July 21, 2008 at 6:13 pm

    Yes, interesting. If you will ever finish this.

  3. Gecko

    on July 21, 2008 at 7:17 pm

    It’s a shame I don’t have Flash CS3. I could get it from school though. I’m trying to learn how to use Flade. I’m only twelve so i’m not having much luck. You could try visiting http://www.freewebs.com/fladezombie if you’re interested…

  4. D.w

    on July 31, 2008 at 2:02 pm

    A detailed tutorial about this would be very interesting to read.

    *Hint hint*

  5. Emanuele Feronato

    on July 31, 2008 at 2:34 pm

    hey I think a detailed tutorial about this would be very interesting to read.

    I’ll publish the 2nd step soon.

  6. James

    on August 3, 2008 at 9:21 am

    Hi Emanuele. I’m trying to do a game and I need your help. I would like to know how to make a button in Adobe Flash CS3 3.0 link to a different scene in the same document.

  7. ithkul

    on August 7, 2008 at 3:01 pm

    I’ve seen a tutorial about box2D. with mr.Feronato’s permission its located here:

    http://www.actionscript.org/resources/articles/742/1/Physics-in-ActionScript-30/Page1.html#postedcomment

  8. Adobe Flash CS3- AS3 and AS2 game tutorials roundup | Lemlinh.com

    on August 19, 2008 at 6:36 pm

    [...] Read more [...]

  9. Peter

    on August 31, 2008 at 11:46 am

    Hi!, is this possible with actionscript 2.0?
    Email me! :D
    Please, I beg you guys,

  10. micfont999

    on September 26, 2008 at 1:12 pm

    hello,
    I’m a french developper and I would first excuse me for my English quite bad.

    I have a little question concerning the block removed that I can not understand.

    Indeed, when I click on a block, this code return 0

    var count:int = m_world.Query(aabb, shapes, k_maxCount);
    trace(count);

    It’s very strange because my world had some blocks. So I have posted my code on this page :
    http://fontaninmichael.fr/arrondir.com/04%20-%20Saiivezeguuce/Main.as

    and the result here :
    http://fontaninmichael.fr/arrondir.com/04%20-%20Saiivezeguuce/test01.swf

    Can you explain me why when I click on one block, m_world.query return 0. :(

    I hope that the totem destroyer tutorial coming soon because it interests me greatly.

    Thanks you very much

  11. Pat

    on October 8, 2008 at 4:34 am

    I am just beginning to learn Flash and I am most interested in creating puzzle and board type games. So far the majority of tutorials I have found are for arcade games (breakout / shooters / etc.) This one has definitely caught my interest and I would love to see the full tutorial. So I will add my voice to the requests to see this one completed.

    Also if anyone can point me to some more similar tutorials it would be quite appreciated.

    Thanks.

  12. oliver_l1

    on October 29, 2008 at 4:00 pm

    please make a 2nd step very soon!

  13. Platform game basics using Box2D : Emanuele Feronato

    on December 23, 2008 at 12:59 pm

    [...] wrote about Box2D Flash version about a year ago, then I published Playing with Box2DFlashAS3 and Create a Flash game like Totem Destroyer as examples covering what you can do with this [...]

  14. julien

    on December 25, 2008 at 10:41 pm

    sooooooooooo cool but its not hard to do this
    i love this game
    good luck!!!!!!!!

  15. Full Totem Destroyer prototype : Emanuele Feronato

    on March 6, 2009 at 1:13 pm

    [...] time ago I posted Create a Flash game like Totem Destroyer, and now I am showing you a complete prototype made by Collin [...]