Dilwyn Jones wrote:
I had considered using something like that, but the best solution
for
what I am trying to achieve would be an equivalent of INKEY$(n)
where
a keyboard read and time delay could be combined such that the game
doesn't suddenly run faster when you press keys.
SUSPEND_TASK 50:key$=INKEY$
There, combination achieved ;-)
Marcel
Thanks. I'm not using Turbo, so would rather not rely on SUSPEND_TASK.
But I see what you mean.
I'll use Ralf's example to write my own extension I can use in
QLiberator compiled jobs.
For some reason I had thought that pressing a key released a suspended
task, but I was mixing that up with using CTRL SPACE (break) to
release a suspended BASIC interpreter job 0. Reading the Turbo Toolkit
manual reminded me I was wrong.
Isn't it nice to realise the answer to what you thought was a
difficult question turns out to be so simple. Doooh! :o)
Dilwyn Jones
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm