gZanyLvl 2
- Windows
So in my game I'm using w,s and spacebar to move up down and shoot. Unfortunately, however, there is a delay in the movement for like one second which is really annoying. Is there a way to remove that?
The code I am using:
onEvent("play", "keydown", function(e) {
if (e.key == "s") {
setPosition("player", getXPosition("player"), getYPosition("player") + 5);
}
});