登录可保存游戏进度并赚积分!
SimpleHelp (AS2): Using All Keyboard Keys

SimpleHelp (AS2): Using All Keyboard Keys

开发者 pproductions

Loading ad...

SimpleHelp (AS2): Using All Keyboard Keys

评分:
2.8
上架时间: September 27, 2009
最近更新: September 27, 2009
开发者: pproductions

SimpleHelp (AS2): Using All Keyboard Keys 的标签

简介

This tutorial is for you if you want to find out how to use keys such as W-A-S-D in your games!

Note: This is a tutorial, not a game. It's even in the tutorial category.

玩法说明

Click. Read. Use.

评论

0/1000
Fitsch avatar

Fitsch

Jan. 09, 2010

0
0

@ nobody227

this tells me typdiscrepance

nobody227 avatar

nobody227

Jan. 06, 2010

0
0

another way to do this is to use the following:
if(Key.isDown(ord("a")))
{
//do something here.
}
"a" can be replaced with any character.
the trick is that the global function ord(value:String):Number
returns the ASCII number associated with the contents of the String
ord("a") returns 65
ord("b") returns 66
and so on...
Have a nice day! :D

Heylon avatar

Heylon

Dec. 19, 2009

0
0

All well and good :) Suggestion: Make an inbuilt key code calculator it would make it more popular(Get more game revenue!). It would be easy to do. And it is alphabet number + 64 guys remember 1 + 64 = 65 witch is the key code for "a". It is not 65 like some of you are saying, trust the tutorial :)
Great job 5/5.

millerking08 avatar

millerking08

Nov. 07, 2009

0
0

YES! finally i know how to do this :):):):):)

fatihkutay avatar

fatihkutay

Oct. 04, 2009

0
0

Nicely done tutorial.