16 lines
331 B
GDScript
16 lines
331 B
GDScript
extends NPCExample
|
|
|
|
|
|
func _ready():
|
|
._ready()
|
|
facing = Constants.Direction.LEFT
|
|
|
|
func before_tick():
|
|
pass
|
|
|
|
func reset_current_action():
|
|
# process CURRENT_ACTION
|
|
if get_current_action() == Constants.UnitCurrentAction.JUMPING:
|
|
if not actions[Constants.ActionType.JUMP]:
|
|
set_current_action(Constants.UnitCurrentAction.IDLE)
|