Hey, i’m very confused as to why my rectangle is not moving, I’ve tried everything and i still don’t get it. So i have created four rectangles going in a linear line one under each other, using the for loop. I want to be able to move these four rectangles all together up and down again and again, almost like a bouncing ball, I’ve tried to make it go up and down like a a single ball would but its not working. Can someone please help me.
Instead of iterating over a for() loop, try iterating over the draw() Method, outside of the for loop.
The sketch window will only render at the end of the draw method.