Get Path Follow Speed


Description

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 Follow Speed Syntax


Arguments:

Argument Description
Target The target variable to hold the returned path follow speed


Example:

Get Path Follow Speed Example
The above action block code gets the current speed of the instance along the assigned path and if it is greater than 4 it is set to 4.