1 |
function scr_game_time_addscr_game_time_addfunction scr_game_time_add() //gml_Script_scr_game_time_add
{
global.game_time_counter_add += 1
if (global.game_time_counter_add >= room_speed)
{
global.game_time_seconds_add += 1
global.game_time_counter_add -= room_speed
}
if (global.game_time_seconds_add >= 60)
{
global.game_time_minutes_add += 1
global.game_time_seconds_add -= 60
}
} () //gml_Script_scr_game_time_add |
2 |
{ |
3 |
global.game_time_counter_add += 1 |
4 |
if (global.game_time_counter_add >= room_speed) |
5 |
{ |
6 |
global.game_time_seconds_add += 1 |
7 |
global.game_time_counter_add -= room_speed |
8 |
} |
9 |
if (global.game_time_seconds_add >= 60) |
10 |
{ |
11 |
global.game_time_minutes_add += 1 |
12 |
global.game_time_seconds_add -= 60 |
13 |
} |
14 |
} |