[問題] keycode 英文鍵盤
各位大大你們好,
我才剛開始學習AS3.0
我做了一個打地鼠的小遊戲
我想要以英文鍵盤來打擊
我數字是這樣寫
case Keyboard.NUMPAD_2:
trace(String.fromCharCode(e.charCode));
if
(mouse2.hitTestPoint(369,381)||mouse11.hitTestPoint(369,381)||mouse20.hitTestPoint(369,381))
{
score+=100;
gamescore.text=String(score);
那請問英文鍵盤的要如何改寫?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.131.95.173
→
08/17 17:30, , 1F
08/17 17:30, 1F
→
08/17 17:55, , 2F
08/17 17:55, 2F
→
08/18 11:02, , 3F
08/18 11:02, 3F
→
08/18 11:03, , 4F
08/18 11:03, 4F
→
08/18 13:02, , 5F
08/18 13:02, 5F
推
08/18 13:10, , 6F
08/18 13:10, 6F
→
08/19 15:47, , 7F
08/19 15:47, 7F