How to Finish Your Game Loop
Move and shoot all you want, there’s no point in playing unless there’s danger.
When your ship runs into a rock, it should explode immediately, and the game should restart after two seconds.
To restart the game after two seconds of the player hitting a rock, we’ll use “Alarms”.
Alarms are a way to specify when the code should do something.
When your ship runs into a rock, it should explode immediately, and the game should restart after two seconds.
To restart the game after two seconds of the player hitting a rock, we’ll use “Alarms”.
Alarms are a way to specify when the code should do something.
Programming the collision between an obj_player1 and a rock – From obj_player1 perspective
Working with Alarm (explained later)
Change your obj_player1 explosion
Add comments to obj_player1 collision
Alarm explained
How to add score – using variables
Displaying the score to the game room
Adding points and game finished
Over to you..
Try any of the following ideas:
•Create an “obj_player2” with keyboard controls etc
•Edit the number of bullets obj_player1 fires simultaneously
•Edit the colours of obj_player1
•Change the font of the score in the top left
•Anything else you think you can change/edit
Goodluck!
•Create an “obj_player2” with keyboard controls etc
•Edit the number of bullets obj_player1 fires simultaneously
•Edit the colours of obj_player1
•Change the font of the score in the top left
•Anything else you think you can change/edit
Goodluck!