Path Movement
Path Movement
The path movement makes an object follow a set path of nodes in either a straight line or a curve.
Creation
Movement_Path
Creates a new Path movement object
Class Functions
Movement
SetMovementAttributes
Change the way the path is followed
EnableMovement
Starts the movement
DisableMovement
Stops the movement
Nodes
AddNode
Add an extra node to the path
EndToStart
Copies the first node to the end of the path
SetToNode
Change the node to travel to
SetMovePoint
Change the current position between the current points
GetNodeIndex
Returns the current node's index
SelectNodeIndex
Selects objects based on their current node's index
GetNextNode
Returns the index of the next node to travel to
SelectNextNode
Selects objects based on the index of the next node to travel to
GetNNodes
Returns the number of nodes in the movement
SelectNNodes
Selects objects based on their number of nodes
Repeats
SetRepeat
Change the number of times the path is repeated, or set to infinite
GetRepeatsLeft
Returns the number of repeats still to do
SelectRepeatsLeft
Selects objects based on the number of repeats still to do
Instance Functions
Movement
SetMovementAttributes
Change the way the path is followed
EnableMovement
Starts the movement
DisableMovement
Stops the movement
Nodes
AddNode
Add an extra node to the path
EndToStart
Copies the first node to the end of the path
SetToNode
Change the node to travel to
SetMovePoint
Change the current position between the current points
GetNodeIndex
Returns the current node's index
GetNextNode
Returns the index of the next node to travel to
GetNNodes
Returns the number of nodes in the movement
Repeats
SetRepeat
Change the number of times the path is repeated, or set to infinite
GetRepeatsLeft
Returns the number of repeats still to do
JAM © 2005 no one in particular
Project started by David Evans in 2005