Pixel-Composer/scripts/time_source/time_source.gml

9 lines
325 B
Plaintext
Raw Normal View History

2023-02-14 02:48:33 +01:00
function run_in(frame, func, args = []) {
var ts = time_source_create(time_source_global, frame, time_source_units_frames, func, args);
time_source_start(ts);
2023-07-23 20:21:35 +02:00
}
function run_in_s(sec, func, args = []) {
var ts = time_source_create(time_source_global, sec, time_source_units_seconds, func, args);
time_source_start(ts);
2023-02-14 02:48:33 +01:00
}