diff --git a/src/models/enemies/rat/Rat.gd b/src/models/enemies/rat/Rat.gd index 6a5786f..eed9687 100644 --- a/src/models/enemies/rat/Rat.gd +++ b/src/models/enemies/rat/Rat.gd @@ -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 diff --git a/src/models/enemies/rat/Rat.tscn b/src/models/enemies/rat/Rat.tscn index e1b47e9..b02646e 100644 --- a/src/models/enemies/rat/Rat.tscn +++ b/src/models/enemies/rat/Rat.tscn @@ -12,7 +12,6 @@ script = ExtResource( 2 ) [node name="Sprite" type="AnimatedSprite" parent="."] frames = ExtResource( 1 ) animation = "idle" -frame = 2 playing = true centered = false