I want to create a programm that moves triangles.
Right now I have a method that draws the triangles and a method that changes the xPosition for the triangles. (yPosition has to stay the same, the changes for the xPosition are random, so they are different every time)
I thought it would work if used both of these methods in the draw() function...but it didnt.
What is happening now: Right now it shows the triangles at the start position but the triangles arent being drawn at the new xPositions.
What should happen: First you have to see the triangles on their start positions, then the old triangle should disappear and the new triangles should be drawn on their new positions. This should happen until one of the triangles reaches xPosition 800, when that happens all the triangles should stop moving