Hi all, thanks for your input regarding the 4-player simultaneous key press
problem - Anders Molsner, your "on idle" handler works much better - cheers!
But, (isn't there always a but?), there is still a problem. Through using
the watcher I can confirm that the following code
on idle
if keypressed(36) = 1 then
return_script
end if
if keypressed(0) = 1 then
a_script
end if
if keypressed(37) = 1 then
l_script
end if
if keypressed(49) = 1 then
space_script
end if
end idle
works like a charm. (BTW this is a broken down, reverse engineered version
of more complex code - I just needed to get the damn thing working!)
The problem appears to be not with the down state, but the up state. The
Keyup handler is not executing at all. I have the above code in the same
frame script as the handler for key presses. Even with the simple code below
on keyup
put "look mum, I'm a keyup result"
end
nothing appears in the message window. In fact nothing works in this
handler. I know it is nothing to do with the handler called from the
keypressed if statements as they are only 3 line, non-repeat loop statements
and I have replaced them with --nothing and still the keyup command is
ignored.
Am I going nuts? Is there some conflict with using keypressed? This game is
really beginning to get on my nerves.
help! X-[
Leon McComish
Web Developer
email: [EMAIL PROTECTED]
Get the best free games on the web at
www.freeloader.com
freeloader.com is a division of
Pure Entertainment Games PLC
131-151 Great Titchfield Street
London W1P 8AE
tel: +44 (0)207 663 3900
fax: +44 (0)207 663 3901
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]