How do you use the “KeyIsDown”, because I try and it isn’t working out that well. My code is here:
//Variables
//X and Y Sipmlifying
var y = this.y;
var x = this.x;
function update() {
//Should Make player move. . .
function keyIsDown(w) {
y += 10;
}
}
And my object still won’t move. Does anyone know this better than I?
if so thank you so much!