idle.gd 272 B

1234567891011121314
  1. extends "on_ground.gd"
  2. func enter():
  3. owner.get_node(^"AnimationPlayer").play("idle")
  4. func handle_input(event):
  5. return super.handle_input(event)
  6. func update(_delta):
  7. var input_direction = get_input_direction()
  8. if input_direction:
  9. emit_signal("finished", "move")