Hi, I have a function to create one set of dots, which are individually created by ellipse() function. I hope to move one set (=individual dots within the set) right and left according to the frame rate, and each set moves at its own pace.
I’m thinking of storing positions of individual dots (that would be many dots though!) and then within draw(), calling another function to increment and decrement the x and y of each dot within a set and update the ellipses to make a moving effect.
Could anyone think of a more efficient way to do this?
Thank you for your help in advance!