I'm fairly new to Processing. I'm writing a simple game, and I want a box to move across the screen only when I hold down the arrow buttons. Right now, I can make it so that they move when I press the arrow keys, but the problem is that the shape just continuously moves across the screen.
I would like my shape to move only when I hold down the arrows, and then stop when I release the arrow key.
Any suggestions? Thank you so much!
1