I would really appreciated some help with this question that I’m stuck on. im trying to get an object to move from one position (last mouse click) to a new position (most recent mouse click).
I’m familiar with functions like: “mouseClicked, pmouseX, mouseX”. so it would be helpful if anyone can use those functions to give me an example of how I can animate an object like ellipse at a certain speed from one position to another.
Thanks in advance
You’d probably want to store the clicked position in a set of variables, and use those variables to update your position each frame.
Start with something simpler. Can you create a small example sketch that moves a circle from one hard-coded position to another hard-coded position? Get that working before trying to move it to the mouse position.