Swing Copters...From The Ground Up

3
  • 7 favourites

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

14,194 visits, 33,138 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.

Group: High Score

Create a new group and name it High Score. Leave Active on start checked.

On start of layout we checked if the key "Hiscore" existed. Now we want to get this key and when got it, we want to set the Global variable Hisore to whatever is the key "HiScore".

Select the group High Score and add the following 2 sub-events.

-LocalStorage: On item exists, key is "HiScore", then the action LocalStorage: Get item, key is "HiScore".

-LocalStorage: On item get, key is "HiScore, then the action System: Set value, the variable is our Global variable Hiscore, and the value is LocalStorage.ItemValue.

Create the remaining groups below.

Group: Instructions

Before the game actually starts, we want obj_Instructions to enter the screen from the left, have it stop half way, wait for the user's input, and then we want it to exit on the right side of the screen.

Select the Instructions group and create the first sub-event. This event will check if the obj_Instructions has reached a certain x-position, and we only want this to happen once. So, in 1 event block, we need 2 conditions.

-obj_Instructions: Compare X, comparison greater than or equal to X-coordinate 206

-System: Trigger once

Add the following actions:

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

-obj_Instructions (Bullet): Set enabled, set it to disabled

-obj_Instructions: Set X, set this to 206

  • 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.