fix rat hp

main
Just Dzhi 2023-10-01 18:48:49 +04:00
parent b2bed34467
commit 10e53ffc09
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,9 @@ onready var player = $"../../Player"
var velocity = Vector2.ZERO
var speed = 48
func _ready():
hp = 15
func _process(delta):
$Sprite.flip_h = true if player.global_position.x > self.global_position.x else false

View File

@ -12,7 +12,6 @@ script = ExtResource( 2 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "idle"
frame = 2
playing = true
centered = false