Pixel-Composer/scripts/time_source/time_source.gml
2023-07-23 20:21:35 +02:00

9 lines
325 B
Plaintext

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);
}
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);
}