Flash End-of-Life, Ruffle Integration!
This game runs on Adobe Flash. Effective Jan. 2021, Adobe began blocking its flash player's use everywhere. Kongregate is now partnering with Ruffle to make some of our Flash content playable again. Please note: If you are using Ruffle, badges will not work normally. In order to earn a badge in a Flash game, you will need to complete the badge, then submit a screenshot (showing both proof of completion and your username) as a missing badge report using the report missing achievement option. Also, please join us in the Kongregate Discord for all the latest Kongregate news!
SimpleHelp (AS2): Using All Keyboard Keys
von pproductions
SimpleHelp (AS2): Using All Keyboard Keys
Tags für SimpleHelp (AS2): Using All Keyboard Keys
Beschreibung
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.
Spielanleitung
Click. Read. Use.
Kommentare
Fitsch
Jan. 09, 2010
@ nobody227
this tells me typdiscrepance
nobody227
Jan. 06, 2010
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
Dec. 19, 2009
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
Nov. 07, 2009
YES! finally i know how to do this :):):):):)
fatihkutay
Oct. 04, 2009
Nicely done tutorial.