Can I add in arrow controls into a game


#1

I’m trying to make a game and instead of adding WASD controls I want to add arrow controls does anyone’s know how?


#2

Hey @lukus_mcd,

You can use this code for arrow keys:

function keyPressed(key) {
    if (key === "UP") {
        doSomething(); 
    }
}

Just swap “UP” with “RIGHT”, “LEFT”, “DOWN”!


#3

Hey Lukus, I didn’t know that you used wick too now! Do you like it? I dont want to say my name online, but I am the one who showed you this software during study hall at emmaus. Anyway, cool your here. see ya