approach

function

approach(value, [target], [amount])

Description

Moves a value by an amount towards a target value but not beyond it

Arguments

Name Type Description
value real The value being moved
target real The target value (default: 0)
amount real The amount in wich the value is moved towards the target (defalut: 1)

Returns

real The moved value


Copyright © 2021, Milan Varady. Built on June 28, 2021 using GMDoc.