I’m making a game, and I have my character all sorted and moving etc, however; when I try and move the character by holding down a key, there is a delay after the initial movement before it starts moving further (The same effect as if you were to hold down a key in the address bar of your browser, for example).
Is there an easy (or hard) way of turning off this small delay just for the purposes of the flash file? I’ve searched the forum, but everything I’ve tried has been unsuccesful.
Thanks in advance :).
EDIT: Forgot to put in my code…:ponder:
onClipEvent (keyDown) {
if (Key.isDown(key.UP)) {
_y -= 3;
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.DOWN)) {
_y +=3;
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.LEFT)) {
_x -= 3;
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.RIGHT)) {
_x +=3;
}
if (_y>350) {
_y=350
}
if (_y<40) {
_y=40
}
if (_x>500) {
_x=500
}
if (_x<50) {
_x=50
}
}