ID:185352
 
I was wondering, is there any form of a sleep() function in TI BASIC.
Soccerguy13 wrote:
I was wondering, is there any form of a sleep() function in TI BASIC.

Not timed. PAUSE, I believe, does sleep, but the user needs to press enter to get it to continue.
In response to Ben G (#1)
You could try the timing hack that some older games used; go through an empty loop 100000 times or so and use that for a delay. =) It'll run at different speeds on different processors, but if you're just making it for one processor then there shouldn't be a problem.

(Edit: typo.)
In response to Crispy (#2)
Crispy wrote:
You could try the timing hack that some older games used; go through an empty loop 100000 times or so and use that for a delay. =) It'll run at different speeds on different processes, but if you're just making it for one processor then there shouldn't be a problem.

That is, actually, exactly what I do.
In response to Ben G (#3)
Ben G wrote:
Crispy wrote:
You could try the timing hack that some older games used; go through an empty loop 100000 times or so and use that for a delay. =) It'll run at different speeds on different processes, but if you're just making it for one processor then there shouldn't be a problem.

That is, actually, exactly what I do.

Yep, and the only way in assembly language :P