Move Towards

This action gives a third way to specify a motion. You indicate a position and a speed and the instance starts moving with the speed towards the position. (It won't stop at the position!) For example, if you want a bullet to fly towards the position of the spaceship you can use as position spaceship.x, spaceship.y. (You will learn more about the use of variables like these below.) If you check the Relative box, you specify the position relative to the current position of the instance. (The speed is not taken relatively!)

Properties: Value:
x Enter X coordinate
y Enter Y coordinate
speed Enter Speed

GML Equivalent


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