On 14/12/2010 16:14, Dilwyn Jones wrote:
Does anyone know of an extension to BASIC similar to PAUSE n which does not return if a key is pressed. That is, a fixed pause.

Or anyone know how or ideas on how best to go about writing one? I guess a suitable keyword name might be WAIT (just to get this started - it wasn't listed in Rich Mellor's BASIC reference manual anyway!)

I considered using job suspensions, but wasn't sure if this would work the same on all systems - I want to introduce short timings which are consistent on all systems and aren't affected by keypresses, so the game can run at a vaguely consistent speed on all systems.

Dilwyn Jones


_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


SUSPEND_TASK (turbo toolkit), SJOB -1,x (Tiny Toolkit) or SUSJOB -1,x (Btool) will all suspend a task for a given number of frames - although beware that these commands, as with PAUSE and INKEY$ vary between 50Hz european machines and 60Hz US machines!

--
Rich Mellor
RWAP Services

http://www.rwapsoftware.co.uk
http://www.rwapservices.co.uk

-- Try out our new site: http://sellmyretro.com


_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to