Swing Copters...From The Ground Up

3

Index

Attached Files

The following files have been attached to this tutorial:

.zip

swing-copters-assets.zip

Download now 195.54 KB
.capx

swing-copters.capx

Download now 328.31 KB

Stats

16,678 visits, 37,961 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.

Published on 11 Aug, 2017. Last updated 19 Feb, 2019

Add the second sub-event to the Instructions group. This event also relies on 2 conditions. The user's input and if obj_Instructions is not moving (speed was set to 0 and bullet behavior disabled).

-Touch: On any touch start

-obj_Instructions (Bullet): Compare speed, comparison equal to and speed at 0

When the conditions are true, we want sounds to be played, obj_Instructions exiting, obj_GetReady exiting, score fading in, starting the obj_Propeller animation, and moving obj_Clouds, obj_Girder, obj_Hammer, obj_Pipes and obj_Ground downwards.

Add the following actions:

-Audio: Play, Audio file coin, Loop not looping, Volume 0 and Tag "Coin"

-obj_Instructions (Bullet): Set speed, set it to 800

-obj_Instructions (Bullet): Set enabled, set the state to Enabled

-obj_GetReady (Bullet): Set angle of motion, set angle to 270 degrees

-obj_GetReady (Bullet): Set enabled, set the state to Enabled

-spf_Score: Set visible, set Visibility to visible

-spf_Score: Start fade

-System: Wait, set to 1.0 seconds

-Audio: Play, Audio file fan, Loop looping, Volume 0 and Tag "Fan"

-obj_Propeller: Start, set From to beginning

-obj_Propeller (Bullet): Set enabled, set the state to Enabled

-obj_Propeller: Set speed, set to 30

-obj_Clouds (Bullet): Set enabled, set the state to Enabled

-obj_Pipes (Bullet): Set enabled, set the state to Enabled

-obj_Ground (Bullet): Set enabled, set the state to Enabled

-obj_Girder (Bullet): Set enabled, set the state to Enabled

-obj_Hammer (Bullet): Set enabled, set the state to Enabled

Add the third and final sub-event. If obj_Instructions x-position is greater than 500, then we will destroy it. The condition and action are:

-obj_Instructions: Compare X, comparison greater than or equal to X-coordinate 500, and the action is obj_Instructions Destroy.

Save the project.

  • 2 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • dazedangels We us this counter for the Medal screen. If your score is 10 and you die then on the Medal screen. Start at 0 and increase by 1 every 0.07 seconds until 10 is reached.

    youtube.com/watch

    Check this vid at 0:36.

    Hope this helps.

  • Why are we creating an event in "Game Over" to add 1 to ScoreCounter every 0.07 if ScoreCounter isn't equal to Score? What is ScoreCounter doing, if the game is over?

    "-System: Every X seconds, where seconds is 0.07"

    Thank you.