fix rat hp
parent
b2bed34467
commit
10e53ffc09
|
@ -4,6 +4,9 @@ onready var player = $"../../Player"
|
||||||
var velocity = Vector2.ZERO
|
var velocity = Vector2.ZERO
|
||||||
var speed = 48
|
var speed = 48
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
hp = 15
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
$Sprite.flip_h = true if player.global_position.x > self.global_position.x else false
|
$Sprite.flip_h = true if player.global_position.x > self.global_position.x else false
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ script = ExtResource( 2 )
|
||||||
[node name="Sprite" type="AnimatedSprite" parent="."]
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||||
frames = ExtResource( 1 )
|
frames = ExtResource( 1 )
|
||||||
animation = "idle"
|
animation = "idle"
|
||||||
frame = 2
|
|
||||||
playing = true
|
playing = true
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue