ClassTweens & Motion@public
FlxPath
Mutable path data followed by a FlxObject.
ts
export declare class FlxPathConstructors
ts
constructor(nodes?: FlxPoint[] | null)Constructs a new instance of the FlxPath class
| Parameter | Type | Description |
|---|---|---|
nodes | FlxPoint[] | null | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
debugColor | - | number | - |
debugScrollFactor | - | FlxPoint | - |
ignoreDrawDebug | - | boolean | - |
manager | static readonly | DebugPathDisplay | null | - |
nodes | - | FlxPoint[] | - |
Methods
add()
ts
add(x: number, y: number): voidParameters:
| Parameter | Type | Description |
|---|---|---|
x | number | - |
y | number | - |
Returns: void
addAt()
ts
addAt(x: number, y: number, index: number): voidParameters:
| Parameter | Type | Description |
|---|---|---|
x | number | - |
y | number | - |
index | number | - |
Returns: void
addPoint()
ts
addPoint(node: FlxPoint, asReference?: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
node | FlxPoint | - |
asReference | boolean | - |
Returns: void
addPointAt()
ts
addPointAt(node: FlxPoint, index: number, asReference?: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
node | FlxPoint | - |
index | number | - |
asReference | boolean | - |
Returns: void
destroy()
ts
destroy(): voidReturns: void
head()
ts
head(): FlxPoint | nullReturns: FlxPoint | null
remove()
ts
remove(node: FlxPoint): FlxPoint | nullParameters:
| Parameter | Type | Description |
|---|---|---|
node | FlxPoint | - |
Returns: FlxPoint | null
removeAt()
ts
removeAt(index: number): FlxPoint | nullParameters:
| Parameter | Type | Description |
|---|---|---|
index | number | - |
Returns: FlxPoint | null
tail()
ts
tail(): FlxPoint | nullReturns: FlxPoint | null