move_towards_point

With this function, you can make an object begin to move towards a set point at a set speed.

Example

move_towards_point(oMan.x,oMan.y,4)

This code will make the object move towards the object "oMan" at 4 pixels per step.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License