The following files have been attached to this tutorial:
This tutorial hasn't been translated.
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.
-obj_Clouds: (Bullet) Set angle of motion, set Angle to 90
-obj_GetReady: (Bullet) Set angle of motion, set Angle to 90
-obj_GameOver: (Bullet) Set angle of motion, set Angle to 90
-obj_Pipeso: (Bullet) Set angle of motion, set Angle to 90
-obj_Ground: (Bullet) Set angle of motion, set Angle to 90
If you select one of the above objects in the layout, you will notice that the angle handle is pointing to the right.
Right is 0 degrees, down is 90 degrees, left is 180 degrees and up is 270 degrees. We want the above objects to move down, so we set the angle of motion to 90 degrees.
-obj_Player: (Pin) Pin to obj_Propeller, select Position & Angle for Mode.
When the obj_Propeller changes position or angle, the obj_Player will follow.
Within the event On start of layout we will create a sub-event.
Select the event On start of layout and press E on the keyboard. Select System: Pick all, and pick obj_Clouds. Add the action obj_Clouds: Set frame, and set the Frame number to the local variable CloudColor.
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.
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"