BBMOD_State

A constructor defined in BBMOD_State.gml

new BBMOD_State(_name)

Description

A state of a state machine.

Arguments

Name Type Description
_name String The name of the state.

Properties

Name Description
IsActive If true then the state is currently active.
Name The name of the state.
OnEnter A function executed when a state machines enters this state. Should take the state as the first argument. Default value is undefined.
OnExit A function executed when a state machine exists this state. Should take the state as the first argument. Default value is undefined.
OnUpdate A function executed while the state is active. Should take the state as the first argument and delta time as the second. Default value is undefined.
StateMachine The state machine to which this state belongs or undefined.

Methods

Name Description
get_duration Retrieves how long (in milliseconds) has the state been active for.

Child structs

BBMOD_AnimationState

See also

BBMOD_StateMachine

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 26, 2024 using GMDoc.