Nocturna
Preparing search index...
states/PlayerStates
IdleState
Class IdleState
IdleState handles the player's behavior when standing still on the ground.
Stops horizontal movement.
Transitions to JumpingState, MovingState, or FallingState based on input and grounded state.
Implements
AbstractState
Index
Constructors
constructor
Properties
Type
Methods
enter
exit
name
update
Constructors
constructor
new
IdleState
(
player
:
Player
)
:
IdleState
Parameters
player
:
Player
Returns
IdleState
Properties
Static
Readonly
Type
Type
:
string
= "idle"
Methods
enter
enter
()
:
void
Returns
void
exit
exit
()
:
void
Returns
void
name
name
()
:
string
Returns
string
update
update
(
dt
:
number
,
input
:
CharacterInput
)
:
AbstractState
Parameters
dt
:
number
input
:
CharacterInput
Returns
AbstractState
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
Type
Methods
enter
exit
name
update
Nocturna
Loading...
IdleState handles the player's behavior when standing still on the ground.