User Tools

Site Tools


al:liveactor

This is an old revision of the document!


al::LiveActor

LiveActor is a class that represents an actor in a scene1). This can be an enemy, level geometry, or anything in between. Most inherited classes use the Nerve system to distribute code to different functions, instead of just 1 update function.

Clipping

If a LiveActor is “clipped”, its code is not being run and it is essentially being ignored. Whether or not a LiveActor is clipped is managed by the scene it is in, usually its archive gives the scene a clipping radius which determines how far the LiveActor can be from the camera before it is clipped, to save on performance.

Functions

init

This function takes an ActorInitInfo parameter with the BYML node this actor is being created from in the stage file. It is used by inherited classes to initialize the Nerve system and the actor itself.

makeActorAlive & makeActorDead

These functions manually make the actor alive/dead.

movement

This is the internal “update” function for LiveActor. It updates all “Keepers” (NerveKeeper, etc.), and calls control.

control

This function is called every frame if the actor is alive.

1)
usually StageScene
al/liveactor.1652696162.txt.gz · Last modified: 2022/05/16 10:16 by fruityloops