ft: made sprite behaviour consistent across entities
This commit is contained in:
@@ -6,6 +6,7 @@ var threshold: float = 100
|
||||
func enter(previous_state_path: String, data := {}) -> void:
|
||||
if data.has("threat"):
|
||||
threat = data["threat"]
|
||||
owner.play_sprite("Fleeing")
|
||||
else:
|
||||
# default behaviour; do nothing
|
||||
finished.emit(owner.fsm.States.IDLE, {})
|
||||
|
||||
Reference in New Issue
Block a user