ft: made sprite behaviour consistent across entities

This commit is contained in:
2026-03-07 13:12:18 +01:00
parent da15fb77a2
commit 1fbc2f6637
9 changed files with 21 additions and 16 deletions

View File

@@ -5,8 +5,7 @@ var target: Node2D
func enter(previous_state_path: String, data := {}) -> void:
if data.has("target"):
target = data["target"]
owner.sprite.play("Hunting")
owner.wrapper.play_sprite("Hunting")
owner.play_sprite("Hunting")
else:
# default behaviour; do nothing
finished.emit(owner.fsm.States.IDLE, {})