BBMOD_State

Extends BBMOD_Class

constructor

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.

See also

BBMOD_StateMachine

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.