friction (Game Maker)


( Game Maker 6.1 7 )

friction - decay the speed of an instance.


friction decays the speed of an instance every step, no matter what direction it is going. If the speed is not increased (added to) then the instance will come to a complete stop.

If friction is set to a value higher than when you attempt to move the instance you will need to add an amount greater than the friction every step to get it moving. When you stop adding to speed, then the instance will grind to a halt.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.