Skip to content
ClassCore & Lifecycle@public

FlxBasic ​

Base lifecycle object shared by gameplay objects, groups, and plugins.

ts
export declare class FlxBasic

Properties ​

PropertyModifiersTypeDescription
active-boolean-
activeCountstaticnumber-
alive-boolean-
cameras-readonly FlxCamera[] | null-
container-FlxContainer | nullExclusive logical container that currently owns this object, if any.
exists-boolean-
ID-number-
ignoreDrawDebug-boolean-
visible-boolean-
visibleCountstaticnumber-

Methods ​

destroy() ​

ts
destroy(): void

Override to release owned resources.

Returns: void

draw() ​

ts
draw(): void

Renderer adapters override this without making core depend on PixiJS.

Returns: void

drawDebug() ​

ts
drawDebug(camera?: unknown): void

Override to enqueue debug geometry for an adapter-owned camera.

Parameters:

ParameterTypeDescription
cameraunknown-

Returns: void

kill() ​

ts
kill(): void

Marks the object both dead and nonexistent.

Returns: void

postUpdate() ​

ts
postUpdate(): void

Called immediately after update.

Returns: void

preUpdate() ​

ts
preUpdate(): void

Called immediately before update.

Returns: void

revive() ​

ts
revive(): void

Marks the object alive and existing.

Returns: void

toString() ​

ts
toString(): string

Returns: string

update() ​

ts
update(): void

Override with authoritative simulation behavior.

Returns: void

Released under the MIT License.