Gets if the player is attacking.
boolean
Applies user data to the behaviour
void
Changes the sprite of the owner. NOTE: This can only be done for animated sprite materials.
void
Removes the owner from the behaviour.
void
Kills the owner entity.
void
Gets the owner Entity of the behaviour.
Entity
Causes the owner to perform an attack.
void
Causes the owner to perform a jump.
void
Called when the behaviour handles a message.
void
Called when the owner takes damage. Usually collided with an enemy. If not dead (hp < 0), will turn the player static for 1 second (invulnerable from attacts)
void
Sets the behaviour data from json format.
void
Sets the owner of the behaviour.
void
Updates the owner's position based on velocity (based on acceleration and the delta).
void
Checks if the behaviour is ready to update.
void
Generated using TypeDoc
Class constructor.