Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_playtime

(view raw script w/o annotations or w/e)
1
function scr_determine_playtime
scr_determine_playtime

function scr_determine_playtime() //gml_Script_scr_determine_playtime { var time_new = date_current_datetime() var time_difference = floor(date_second_span(global.saved_datetime, time_new)) global.elapsed_seconds += time_difference global.saved_datetime = time_new }
() //gml_Script_scr_determine_playtime
2
{
3
    var time_new = date_current_datetime()
4
    var time_difference = floor(date_second_span(global.saved_datetime, time_new))
5
    global.elapsed_seconds += time_difference
6
    global.saved_datetime = time_new
7
}