Fixed chase states
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
extends CultistChaseState
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
|
||||
func init() -> void:
|
||||
_direction = DIRECTION_LEFT
|
||||
_wall_ray_cast = cultist.left_wall_ray
|
||||
_player_ray_cast = cultist.left_player_distant_ray
|
||||
|
||||
|
||||
func enter() -> void:
|
||||
cultist.sprite.play(CultistSprite.ANIMATION_CHASE_LEFT)
|
||||
|
||||
|
||||
func _is_target_reached() -> bool:
|
||||
return cultist.position.x <= cultist.target_x
|
||||
|
||||
Reference in New Issue
Block a user