Description
Gradually modifies the value of a Global Variable at a specific rate. (A global variable is a variable that belongs to the game itself.)
Snippet
Chase Global Variable At Rate(variableName, 0, 1, Destination And Rate);
Properties
Returns: Void
Parameters: Variable, Destination, Rate, Reevaluation
Variable
Type: Global Variable, Default: A
Specifies which global variable to modify gradually.Destination
Type: Float | Vector, Default: Number
The value that the global variable will eventually reach. The type of this value may be either a number or a vector, though the variable's existing value must be of the same type before the chase begins.Rate
Type: Float, Default: Number (1)
The amount of change that will happen to the variable's value each second.Reevaluation
Type: Chase Reevaluation, Default: Destination And Rate
Specifies which of this action's inputs will be continuously reevaluated. This action will keep asking for and using new values from reevaluated inputs.
Example usages
- Game where gave players points. To make it seem more responsive, have it roll through the numbers actively until it gets to the new number.
- Animating something to move. "Create Effect Sphere" to move through the air.
Related Actions
- chase global variable over time A different chase that finishes at a set duration [over time.]