Ask coding questions

← Back to all posts
How would I use arrow keys to move an image in java?
SamiOsman (45)

I am making a game similar to @Pyer 's grocery run but in java. I wanted to know how to make arrow keys in java to move an image. I also would like to have the WASD keys to work too, if it is not too hard to do that too.

Comments
hotnewtop
nbash (7)

click on it then us arrow keys.

SamiOsman (45)

@nbash Did you even read the description? I wanted to move an image with arrow keys. Please pay more attention.

nbash (7)

@SamiOsman yes i saw and thats how you do it i think

SamiOsman (45)

@nbash Please explain what you are trying to tell me with steps.

nbash (7)

@SamiOsman when you click the image there should be an outline around the image and then us the arrow keys to move it

nbash (7)

@SamiOsman ok... im sorry tho :(