HOME       >>       Programming

Game Key Press Issues


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,


VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.