Honesty Rocks! truth rules.

Game Key Press Issues

HOME      >>       Programming

magiccode91405241511

Hi,

I'am trying to use actionscipt to write a simple game.
But I found tht if I use the Key's event system.
It's a bit delay ...

here is the code,

var o = new Object();o.onKeyDown = function (){ if (Key.getCode() == 40) { _parent.fire._y += 50; }}

Key.addListener(o);

how do I be able to reduce the delay when press key button on the keyboard ?

Thank,