Hi, I am a complete beginner so bare with me!
I have created a rectangle using ofRectangle and I would like to the rectangle to constantly be moving around the screen and change direction when prompted by arrow key.
Is it as simple as writing x+ x_distance to move th shape and how would I change the direction of the rectangle? Some sample code would help. (I don’t have access to OF myself at the moment)