ClassCore & Lifecycle@public
FlxBasic
Base lifecycle object shared by gameplay objects, groups, and plugins.
ts
export declare class FlxBasicProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
active | - | boolean | - |
activeCount | static | number | - |
alive | - | boolean | - |
cameras | - | readonly FlxCamera[] | null | - |
container | - | FlxContainer | null | Exclusive logical container that currently owns this object, if any. |
exists | - | boolean | - |
ID | - | number | - |
ignoreDrawDebug | - | boolean | - |
visible | - | boolean | - |
visibleCount | static | number | - |
Methods
destroy()
ts
destroy(): voidOverride to release owned resources.
Returns: void
draw()
ts
draw(): voidRenderer adapters override this without making core depend on PixiJS.
Returns: void
drawDebug()
ts
drawDebug(camera?: unknown): voidOverride to enqueue debug geometry for an adapter-owned camera.
Parameters:
| Parameter | Type | Description |
|---|---|---|
camera | unknown | - |
Returns: void
kill()
ts
kill(): voidMarks the object both dead and nonexistent.
Returns: void
postUpdate()
ts
postUpdate(): voidCalled immediately after update.
Returns: void
preUpdate()
ts
preUpdate(): voidCalled immediately before update.
Returns: void
revive()
ts
revive(): voidMarks the object alive and existing.
Returns: void
toString()
ts
toString(): stringReturns: string
update()
ts
update(): voidOverride with authoritative simulation behavior.
Returns: void