Get Path Follow Speed Icon Get Path Follow Speed

This action will get the speed, in pixels per game frame, that an instance is set to follow a path (note that you must have called the Start Following Path action to assign a path to the instance for this to to return a value other than 0). The returned value will be stored in the target variable you give, or you can flag the variable as a temporary local variable to create it and assign the value.

 

Action Syntax:

Get Path Speed Action

Arguments:

ArgumentDescription
TargetThe target variable to hold the returned path follow speed

 

Example:

Get path Speed ExampleThe above action block code gets the current speed of the instance along the assigned path and if it's less than 4, it increments the path speed by 0.1.