00:00
00:00
View Profile BoMToons
So many times, it happens too fast...you trade your passion for glory. Don't lose your grip on the dreams of the past, you must fight just to keep them alive.

39, Male

Software Engineer

Somewhere in Nevada...

Somewhere in California..

Joined on 11/29/05

Level:
38
Exp Points:
15,654 / 16,030
Exp Rank:
1,128
Vote Power:
7.93 votes
Rank:
Police Officer
Global Rank:
15,616
Blams:
242
Saves:
377
B/P Bonus:
10%
Whistle:
Gold
Trophies:
34
Medals:
1,088
Supporter:
2y 11m 25d
Gear:
17

Key code mapping tutorial

Posted by BoMToons - January 14th, 2014


I found myself using some code over and over and constantly visiting this one site to get as3 keycodes, so I thought maybe the code I wrote might be useful to others. I really hope there's not already a built-in way to do this in as3 :-P

Mapping key codes to text names:

http://www.newgrounds.com/bbs/topic/1358795

EDIT: After some discussion in the forums, http://milchreis.newgrounds.com/ came up with a much more elegant solution.

Here's a .swf: http://www.newgrounds.com/dump/item/9db15013684d6c22005bc9f3335935c8

And here's the .fla (cs5.5): http://www.newgrounds.com/dump/item/d7d2f4bbb27686e35675e9bad8205cff

 

Also, the Labyrinth game is done, just waiting on the sponsor to launch it officially!1405066_138972984172_featureimg.png


Comments (3)

Luis showed me some of the progress on Labyrinth lol. I'm pretty excited for it!

*high ten*

I have the important ones memorized at this point.

A=65
P=80

That's about all I can remember without looking... :-(

where can i download this game i want to play for free please

it will be a free web game when it comes out