GameMaker (2.3)
Icon

Timer System

Gabiru

You must be logged in to obtain assets

Description

infinite timer system similar to javascript setTimeout. ideal for massive use!

timer_create(time, function, arguments, persistent)
create a timer time: time until the timer is called function: function that will be called arguments: optional, array with the arguments that will be passed to the function, the array can contain a maximum of 15 index persistent: optional, by default false, by default the functions are called in the instance that created the timer, if true, the function is called outside the scope of the instance that called returns the index of the created team

timer_finish(timer_index) destroy the timer and call its function timer_index: team index to be affected returns nothing

timer_destroy(timer_index) destroy the timer timer_index: team index to be affected returns nothing

timer_get_time(timer_index) takes the countdown time until the timer function is called timer_index: team index to be affected returns the time the timer is

timer_pause(timer_index) counts down until the execution of the timer function pauses timer_index: team index to be affected returns nothing

timer_play(timer_index) let the countdown until the execution of the timer function continues timer_index: team index to be affected returns nothing

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 0.0.5. Published March 30, 2023

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait