• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

GMS 2.3+ Can an object be made to approach another?


Can an object be made to approach another? I need to make an object approach another slowly when it enters a circular range, but I don't know if this is possible, at least I can't find the way.
Nah, GameMaker doesn't support this.

What have you attempted? This is easily done by, as you stated, checking the range and then moving towards the given coordinates at a desired speed.
The simple answer is yes you can, look into functions such as collision_circle() and move_towards_point(), there are other functions you can utilize for your said intention, you should check the MANUAL for details.