Behaviors > State


Is Enabled?

Is Behavior enabled? (for Actor)

behavior text is enabled for actor

Returns true if the specified behavior (using its name) is enabled for the given actor.

[ACTOR].isBehaviorEnabled([TEXT])

Is Behavior enabled? (for Scene)

behavior text is enabled for this scene

Returns true if the specified behavior (using its name) is enabled for the current scene.

isBehaviorEnabledForScene([TEXT])

Enable / Disable

Enable / Disable Behavior for Actor

enable behavior text for actor

Enables (or disabled) the specified behavior (using its name) for the given Actor. Disabling a behavior will stop it from receiving when updating and when drawing events but does not prevent its other events and do-after/do-every tasks from running.

[ACTOR].enableBehavior([TEXT]);
[ACTOR].disableBehavior([TEXT]);

Enable / Disable Behavior for Scene

enable behavior text for this scene

Enables (or disabled) the specified behavior (using its name) for the current scene. Disabling a behavior will stop it from receiving when updating and when drawing events but does not prevent its other events and do-after/do-every tasks from running.

enableBehaviorForScene([TEXT]);
disableBehaviorForScene([TEXT]);

Disable This Behavior

disable this behavior

Disables the current behavior. Does not immediately stop its code from running - you'll need to use stop-block to achieve that.

Disabling a behavior will stop it from receiving when updating and when drawing events but does not prevent its other events and do-after/do-every tasks from running.

disableThisBehavior();

Has Behavior?

Does Actor have behavior?

actor has behavior text

Returns true if the specified behavior (given the behavior name) is attached to the given actor.

[ACTOR].hasBehavior([TEXT])

Does Scene have behavior?

this scene has behavior text

Returns true if the specified behavior (given the behavior name) is attached to the current scene.

sceneHasBehavior([TEXT])