--place the following line of code at the beginning of the program local startTime = zmg.ticks() local function timeElapsed() return math.floor((zmg.ticks()-startTime)/128) end local function wait(timeToWait) local start = timeElapsed() while timeElapsed() - start < timeToWait do end end
No replies to this topic
#1
Posted 20 November 2012 - 10:40 AM
I made a simple wait() function for LuaZM, in case anyone needs one. 
Also tagged with one or more of these keywords: LuaZM, wait
General →
Your Projects →
Back2Basic: A Luazm LibraryStarted by flyingfisch , 06 Mar 2013 |
|
|
||
LuaZM
General →
Your Projects →
Luazm: Box JumpStarted by flyingfisch , 20 Nov 2012 |
|
|
||
LuaZM
General →
Your Projects →
Luazm Chesstimer (Need Help, Not Finished)Started by flyingfisch , 28 Oct 2012 |
|
|
||
LuaZM
General →
Your Projects →
Pong++ (Luazm)Started by flyingfisch , 19 Sep 2012 |
|
|
||
LuaZM
General →
Your Projects →
Etch-A-Sketch: LuazmStarted by flyingfisch , 13 Sep 2012 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users



