
roguecode.blogspot.com
Rogue CodeA blog designed to share ideas about Flash Actionscript - especially developed using Flash MX 2004. Wednesday, June 21, 2006. Moving a Character With The Arrow Keys. The following code when attached to a character will allow the character to be moved using the arrow keys:. If (Key.isDown(37) {. If (Key.isDown(38) {. If (Key.isDown(39) {. If (Key.isDown(40) {. Extra Code to stop character car going through walls:. If (hitTest( level0.wall)= true) {. If (hitTest( level0.lft wall)= true) {.
http://roguecode.blogspot.com/