0 Members and 1 Guest are viewing this topic.
a = truetimer.start(1)repeatuntil a == false
I'm trying to use on.timer() to pause. How would you do that?Code: [Select]a = truetimer.start(1)repeatuntil a == falseon.timer just sets a = true, but it still gets stuck in infinite loop.
pause = falsefunction to calculate move starts here*here ends the code to 'calculate' the move*pause = truetimer.start(1)here ends the function to calculate movefunction on.timer()timer.stop()pause = falseplatform.widow:invalidate()end
Wow, that looks very nice o.o What is the size of the program and whatnot? (I only own TI-84s and a TI-89).
What do you want to do anyway ?
I see you added the image in the background.
Does anybody know how to do a pause function? I would probably have to change quite a bit of code to get it to work...
print("hello")startTime = timer.getMilliSecCounter()while timer.getMilliSecCounter() < startTime+3000 doendprint("world") -- this will be done after 3 seconds
function pause(pauselength)local starttimer = timer.getMilliSecCounter()while timer.getMilliSecCounter() < starttimer + pauselength*1000endend
pause(1)