3 in 1 Game

2

Index

Attached Files

The following files have been attached to this tutorial:

.capx

3-in-1-simplegame.capx

Download now 2.42 MB

Stats

7,019 visits, 15,950 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Layout number two:

Create 3 sprites and name them sprTriangle, sprCircle, sprStar. These 3 sprites will be holder for our shapes.

Add three new sprites and name it Triangle, Circle, and Star. These sprites will be our object that can be drag and drop on right place. These sprites if filled with solid colour.

For effects create 3 Particles object like this below and name it Trianglepop, Circlepop, Starpop.

For Particles you can use this property below

Now create 3 more sprites for shape placement in right order. Meaning Triangle goes on Triangle, Circle on Circle, Start on Star.

invisStar, invisCircle invisTriangle I have used invis as (INVISIABLE) 3 box

These sprite needs behaviour DragDrop, BoundToLayout. Place your sprites like below:

Now open your Event Editor and add these lines below:

First add global variable Shapedcomplete = 0

Now when we DragDrop object we need to do collision checks therefore add lines below?

Now copy ctrl+c above line and paste it ctrl+v. Now just replace circle to triangle and then copy, paste change to Star. Now we came to end of these sections and make our decision move forward or what?

Please learn code above and see how I have made my decision on my variable Shapedcomplete. On this conclusion I can move forward or not. This is end for shape layout. Save it and run.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!