> From: [EMAIL PROTECTED] (Lingo-L Digest)
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 10 Oct 2000 11:59:33 -0400 (EDT)
> To: [EMAIL PROTECTED]
> Subject: Lingo-L Digest V1 #1664
> 
> Subject: <lingo-l> keyPresses
> 
> Ok guys...
> I have a car race game where the arrow keys control the position of the car
> on a straight road. The problem is that I can detect multiple keyPresses by
> using the keyPressed()


on keyDown
    case (the keyCode) of
        123: TurnLeft
        126: GoForward
        125: BackUp
        124: TurnRight
    end case
end

on Mac this works

to read key codes heres the lingo
on exitFrame
on keyDown
  
  set the text of member "theKeyCode" to  string( the keyCode)
end keyDown
end

the member "theKeyCode" is a text cast member named  "theKeyCode"

best wishes

Gopinath Menon



[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!]

Reply via email to