Build 10 games and learn game development along the way in this fast paced game development course

Get the source code of 12 commercial games, loaded 50+ million times, and learn the secrets of game design

Learn how to make a successful Flash game from a real world example. Fully commented source code

Create realistic Flash physics games from scratch with advanced features, from Angry Birds to Crush the Castle

Drag and Match engine like the one used in 10000000 made with Stencyl

A couple of months ago I showed you the creation of a Flash AS3 match 3 engine by dragging rows and columns rather than swapping items like the one used in the famous 10000000 game.

Now I made the same thing using Stencyl. I really recommend to give Stencyl a try because it’s very easy to do stuff with it.

Here is what I did:

Click and drag row and columns. I also used a “retina” display as images are actually 80×80 pixels although I am showing them at 40×40.

The project is a bit unoptimize as I am trying to convert it into a customizable behavior, anyway I followed the same logic used in the creation of a Flash AS3 match 3 engine by dragging rows and columns rather than swapping items.

We have only an actor called Tile with 6 animations, one for each color.

The one and only behavior bound to the main scene has four events:

Created to initialize the game

Mouse Clicked to pick a tile

Mouse Moved to drag a row or a column

Mouse Released to stop dragging

During next days I will release a proper optimized behavior with space for customization, meanwhile you can have a look at the project source code.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.75 out of 5)
Loading ... Loading ...
Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has 2 comments

  1. SadiQ

    on April 16, 2014 at 4:43 am

    Can’t wait to see the changes you make to allow some customization :)
    Good job with this one.

  2. lbroussal

    on April 26, 2014 at 2:49 pm

    Stencyl is pretty amazing
    i can’t believe it is possible doing this without line of code.
    And now they have done a Stencyl extension fot Nuggeta Gaming services offering social and multiplayer features.
    here the official thread about Stencyl Nuggeta extension

    http://community.stencyl.com/index.php/topic,31168.msg179920.html#msg179920

Thank you for the download!!

I hope you will find it useful and make something interesting out of it

To keep up to date with the blog, why don't you like my Facebook page and follow me on Twitter?

Want to learn more? Don't miss this:

Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now

×