Fixed chase states

This commit is contained in:
2026-02-11 23:56:31 +03:00
parent 2562366d8a
commit 1f25c93fc1
17 changed files with 81 additions and 184 deletions
@@ -1,9 +1,15 @@
extends CultistChaseState
func _ready() -> void:
super._ready()
func init() -> void:
_direction = DIRECTION_RIGHT
_wall_ray_cast = cultist.right_wall_ray
_player_ray_cast = cultist.right_player_distant_ray
func enter() -> void:
cultist.sprite.play(CultistSprite.ANIMATION_CHASE_RIGHT)
func _is_target_reached() -> bool:
return cultist.position.x >= cultist.target_x