The Dink Network

wait command

August 21st 2006, 11:37 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
it seems to me the wait command has a minimum

for instance if you do a loop

with every time it loops dink counts

and do wait(1) in between

it really waits longer than just a (1)

does anyone know what the minimum is?
August 22nd 2006, 12:05 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Any wait less than 12 milliseconds will be about 12 milliseconds. However, this is dependent upon the speed of the computer and what else it is doing at that moment.

If you're trying to perform a specific task in a loop (like creating sprites, but NOT doing a timer from a spawned script), you could try using a loop without any wait statements. But if you mess up, then the game locks up.
August 22nd 2006, 01:47 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
im using it to say, move a speed 0 missile, by pixel. so i shouldnt try to go any faster than 12?
August 22nd 2006, 07:29 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Going faster than 12 is fine.... but you won't notice any difference between wait(1) and wait(12).

Have you tried sp_mx and sp_my?
August 22nd 2006, 11:00 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
yeah i mean i should go faster than 12 since it wont make a difference

and theres a reason i do it pixel at a time, because where dink is depends on what direction it will go