moving circle along a path !
in
Programming Questions
•
1 year ago
Hello everyone , well I have been stuck on this for some time now !
so I have an arraylist that contains the path , it's an arrayList of points.
then I have to show the path ,
simply by point(pointFromArraylist.x,pointFromArrayList.y);
but then I have to show one circle as it moves from one point to another. so let's say it's
ellipse(pointFromArrayList.x,pointFromArrayList.y,50,50);
I just want to know how can I show the circle moving from one point to the other, while keeping the the path shown.
I tried using background(255) to clear. but that's just wrong (it clears everything) , and I want to know , how can i add a delay to see what's happening.!!
Thanks in advance.
so I have an arraylist that contains the path , it's an arrayList of points.
then I have to show the path ,
simply by point(pointFromArraylist.x,pointFromArrayList.y);
but then I have to show one circle as it moves from one point to another. so let's say it's
ellipse(pointFromArrayList.x,pointFromArrayList.y,50,50);
I just want to know how can I show the circle moving from one point to the other, while keeping the the path shown.
I tried using background(255) to clear. but that's just wrong (it clears everything) , and I want to know , how can i add a delay to see what's happening.!!
Thanks in advance.
1