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,450 visits, 33,755 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: Get Ready

In this group, we only need to check if obj_GetReady has reached its destination when it enters and exits the screen. By now you should know how to do this, so I will keep it brief until we come upon a topic which has not been discussed.

Make one event that checks if obj_GetReady's Y is greater than 180. If it is, then add the action which sets obj_GetReady's Y to 180.

Make the second event that checks if obj_GetReady's Y is less than -50. If it is, then add the action which sets obj_GetReady's Y to -50.

Group: Player Controls

This group checks for the user's input. When the screen is touched, we want to play a sound, change the speed and acceleration of obj_Propeller, and mirror obj_Player.

For the user's input, we will use Touch. Touch also allows the user to use the mouse.

Start by creating the first sub-event within the Player Controls group which will check for the user's input.

-Touch: On any touch. The actions are play the sound flip, and set obj_Propeller's acceleration to -200.

Using a negative value for the acceleration is deceleration.

After the user touches the screen, we need to check if obj_Player is mirrored or not mirrored (the direction in which obj_Player is facing). Create a sub-event within the Touch condition which checks if obj_Player is NOT mirrored and add the actions which will do the following:

-obj_Player set to mirrored (facing to the left)

-wait 0.2 seconds

-obj_Propeller's angle of motion set to 180 degrees

-obj_Propeller's acceleration set to 1000

-obj_Propeller's speed set to 200

You might have noticed that there is no condition 'not mirrored'. Select is mirrored, then right click on the condition and select Invert. Or, press I on the keyboard.

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