Does any one know about delay/sleep function that can be used with nspire lua as on.clock() wont work
Welcome on the forums! You should
There are plenty experienced Lua programmers out here, so I'm sure they will figure it out for you
Last Edit: 01 June, 2012, 19:54:33 by aeTIos »
If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--
There has been some topics already about this kind of things.
Generally (with all due respect), you don't really have to really "pause" the script flow directly, but maybe you just mess with
(not 'on.clock', nor 'on.tick'), which is called every tick, whose period is define by
Last Edit: 02 June, 2012, 12:28:22 by adriweb »
Yeah, you'll want to start a timer or save the current time, then check if your desired number of time has been elapsed.
Last Edit: 02 June, 2012, 01:04:59 by Juju »
LuaIDE Reuben Quest HD: The PC Remake
Info Download Spoiler for Other stuff:
Also Yuki "ジュジュ" Kagayaki
against the attacks of matt @ matpac.co.uk ! For more information:
Casio-Scene shuts down
Find what P+4zJ means and you get free candy! cc4daa9c4645bd123ed22e385ed701fd
#omnimaga on OmniNet, EFNet and Pesterchum
Omnimaga Owner and Former Administrator
Fan of My Little Jim Bauwens: Losing the Game is Magic
Proud member of POLN - Ponys Oppositing Lol Names
Member of OBEL - Omnimaga Board of the EFnrgelnicshh Language - Office Omnimagois de la Langue FArnagnlçaaiiss
Spoiler for Old spoileryception stuff: Spoiler for Coming soon...:
Indefinitely halted [|.........] 10%
[||||......] 40% (argh threads >_<)
Spoiler for Spoilers:
Spoiler for Quote:
We are in 2034. The situation on Earth is catastrophic. The ozone layer has been completely destroyed by the carbonic gas of automobiles, the chemical industries, and the poosh-poosh in little cans. In the end, the earth cooks under the rays of the sun. We must find a planet on which can live 6 billion idiots. The planetary federation turns to the strongest country in the world: Canada. It is Canadian knowledge that has allowed, on October 28, 2034, the launch of the spaceship Romano Fafard, which leaves earth to search the confines of the Universe. Where the hand of man has never set foot.
I hate TI right now
You make me lose the game
Everytime I read your name
One important difference with the Lua API (and also with the Love API) is that it is event based.
Tight while loops are not recommended. This might be confusing in the beginning, but you will appreciate it in the end
So you will need to use the timer system.
will make that the
event will fire every x seconds.
You will have to define
so that it does the changes you want and then invalidates the screen so that the screen will be redrawn.
Last Edit: 02 June, 2012, 11:45:04 by jimbauwens »