How do I Slow Down to Stop

Get help using Construct 2

Post » Sun Oct 25, 2015 10:06 pm

I'm making a game where I would like the game action to slow down once the GAME OVER text appears, and then eventually the game action stops. Then the player can either restart or go the main menu. I'm aware of the Time Scale feature so I'd like to know what events I'd need to accomplish this.
B
230
S
128
G
9
Posts: 150
Reputation: 23,226

Post » Tue Oct 27, 2015 1:37 pm

The easiest way is to have a variable set when your condition is met (ie. gameover=1), then use system set timescale: value.

gameover=true
[System:Compare variable (gameover=1):]
System Set TImescale 50
Wait 1
System Set Timescale 40
Etc
Etc

Or better yet, make a function that reduces a Timescale variable by 1 each .1 seconds and then simply call the function when gameover=1 and set timescale to the timescale variable so it grinds to a smooth stop. This would allow you to use a compare on the timescale variable as well so when timescaleVar=0 trigger GAME OVER.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: hao102a2 and 30 guests