Files
2026-06-12 13:55:11 +03:00

17 lines
407 B
GDScript

extends CultistChaseState
func init() -> void:
_direction = DIRECTION_RIGHT
_wall_high_ray_cast = cultist.right_wall_high_ray
_wall_low_ray_cast = cultist.right_wall_low_ray
_player_ray_cast = cultist.right_player_distant_ray
func enter() -> void:
cultist.animated_sprite.play(CultistSprite.ANIMATION_CHASE_RIGHT)
func _is_target_reached() -> bool:
return cultist.position.x >= cultist.target_x