A
AFD456
Guest
Hi guys,
I'd love to know If it's possible to reset current_time when I restart game? Time reset itself only when I end the game and then run it all over again. Thank you for your answers!
Code:
Create Event:
miliseconds = 0
seconds = 0;
minutes = 0;
hours = 0;
//timer start immediately
count_up = true;//.
Step Event:
if (count_up == true)
{
miliseconds = ((current_time ) mod 1000)
seconds = ((current_time ) div 1000) mod 60 //increment seconds by 1 ever real-time second.
minutes = ((current_time ) div 60000) mod 60
hours = ((current_time ) div 3600000) mod 3600
}
Keyboard Event for <Enter> Key:
///restart
game_restart()
// I thought this could work; It doesnt...
miliseconds = 0
seconds = 0
minutes = 0
I'd love to know If it's possible to reset current_time when I restart game? Time reset itself only when I end the game and then run it all over again. Thank you for your answers!
Code:
Create Event:
miliseconds = 0
seconds = 0;
minutes = 0;
hours = 0;
//timer start immediately
count_up = true;//.
Step Event:
if (count_up == true)
{
miliseconds = ((current_time ) mod 1000)
seconds = ((current_time ) div 1000) mod 60 //increment seconds by 1 ever real-time second.
minutes = ((current_time ) div 60000) mod 60
hours = ((current_time ) div 3600000) mod 3600
}
Keyboard Event for <Enter> Key:
///restart
game_restart()
// I thought this could work; It doesnt...
miliseconds = 0
seconds = 0
minutes = 0