Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: BrownyTCat on June 25, 2011, 09:31:51 pm

Title: An equivalent to "wait()"?
Post by: BrownyTCat on June 25, 2011, 09:31:51 pm
I've tried "timer", but all it does is screw up my redrawing. The wiki's explanation is pretty vague if it makes any sense.
Title: Re: An equivalent to "wait()"?
Post by: fb39ca4 on June 25, 2011, 11:26:04 pm
You could use a for loop that increments >9000! times, but does nothing inside. I have no idea how long 9001 will actually take, you will have to experiment with different values.
I think timer is for measuring the amount of time, you could also set the timer to 0 and use a while loop that only exits after a certain time passes on the timer, though you will only get .01 second precision with this.
Title: Re: An equivalent to "wait()"?
Post by: Munchor on June 26, 2011, 06:34:39 am
I highly recommend you to check the Lua Routines topic, there may be something useful there ;)
Title: Re: An equivalent to "wait()"?
Post by: Ashbad on June 26, 2011, 09:11:28 am
If you want, you can show me how your code looks right now and I can show you how to have that setupNoBreakPause routine would work.