Path Movement
Path Movement

The path movement makes an object follow a set path of nodes in either a straight line or a curve.

Path movement sample

Creation
 
Movement_PathCreates a new Path movement object
Class Functions
 
Movement
SetMovementAttributesChange the way the path is followed
EnableMovementStarts the movement
DisableMovementStops the movement
Nodes
AddNodeAdd an extra node to the path
EndToStartCopies the first node to the end of the path
SetToNodeChange the node to travel to
SetMovePointChange the current position between the current points
GetNodeIndexReturns the current node's index
SelectNodeIndexSelects objects based on their current node's index
GetNextNodeReturns the index of the next node to travel to
SelectNextNodeSelects objects based on the index of the next node to travel to
GetNNodesReturns the number of nodes in the movement
SelectNNodesSelects objects based on their number of nodes
Repeats
SetRepeatChange the number of times the path is repeated, or set to infinite
GetRepeatsLeftReturns the number of repeats still to do
SelectRepeatsLeftSelects objects based on the number of repeats still to do
Instance Functions
 
Movement
SetMovementAttributesChange the way the path is followed
EnableMovementStarts the movement
DisableMovementStops the movement
Nodes
AddNodeAdd an extra node to the path
EndToStartCopies the first node to the end of the path
SetToNodeChange the node to travel to
SetMovePointChange the current position between the current points
GetNodeIndexReturns the current node's index
GetNextNodeReturns the index of the next node to travel to
GetNNodesReturns the number of nodes in the movement
Repeats
SetRepeatChange the number of times the path is repeated, or set to infinite
GetRepeatsLeftReturns the number of repeats still to do



JAM © 2005 no one in particular
Project started by David Evans in 2005