There is an object (picture) and a certain space (form), an object can be located at any point of this space. When clicking on a form (space), an object should “crawl” at a certain speed to the place where it was clicked with the mouse.
Help arrange this.

  • and what actually does not work? - androschuk

1 answer 1

the timer on the form, by clicking the timer starts, in the processing of the OnTimer event, change the coordinates of the object to a fixed step until it crawls to the desired point. Speed ​​can be set in increments or timer intervals