Jam10/Units/DownhillAutoscrollerNPC.gd

16 lines
331 B
GDScript3
Raw Normal View History

2023-01-27 21:55:12 +00:00
extends NPCExample
2023-01-29 22:46:06 +00:00
func _ready():
._ready()
facing = Constants.Direction.LEFT
2023-01-27 21:55:12 +00:00
func before_tick():
pass
2023-01-29 22:46:06 +00:00
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)