Moves param "a" towards param "b", by the param "amount". It will not overshoot "b". Offers three types of movement: "Normal": Just moves a to b. "Smooth": Adds smoothing so movement will slow smoothly to a halt. "Springy": Once a reaches b, a "rubber-band" effect takes place Can be used for character movement, text movement, hp bars etc etc.

For example:

health = moveto(health, 10, 1, 0); Will change the variable "health" to 10 at the rate of 1 per step using "normal" movement.

x = moveto(x, targetx, 10, 1); Will change x co-ordinate of the calling instance to whatever "targetx" has been set to, with smooth movement.

End User Licence Agreement (EULA).

Age Rating: 4+


GMS2 - Version 1.0.0. Published October 7, 2019

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top