'function TIC()' calls 60 times per second, so you can use code like this:
local t=0 function TIC() cls(12) t=t+1 -- wait 2 seconds if t<2*60 then return end print("HELLO WORLD!",84,64) end
Perfect, thanks mate
does this work on any other functions that arent function TIC? i want a custom fuction to play an animation
in case you don't have a stable frame rate as you can use this
local t=0 pt=time() dt=0 function TIC() dt=time()-pt pt=time() cls(12) t=t+dt -- wait 2000 miliseconds if t<2*1000 then return end print("HELLO WORLD!",84,64) end