Behavior > State


Is Enabled?

Is Behavior enabled? (for Actor)

behavior-enabled-actor-block

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

[ACTOR].isBehaviorEnabled([TEXT])

Is Behavior enabled? (for Scene)

behavior-enabled-scene-block

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

isBehaviorEnabledForScene([TEXT])

Enable / Disable

Enable / Disable Behavior for Actor

behavior-enabled-scene-block

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]);

Enable / Disable Behavior for Scene

behavior-enabled-scene-block

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]);

Disable This Behavior

behavior-enabled-scene-block

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?

scene-has-block

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

[ACTOR].hasBehavior([TEXT])

Does Scene have behavior?

actor-has-block

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

sceneHasBehavior([TEXT])