fix head hitbox

This commit is contained in:
Haze Weathers 2023-06-08 20:34:19 -04:00
parent 20584fc8d3
commit 46bd32f3b2

View file

@ -26,6 +26,9 @@ func _ready() -> void:
spike_tween.tween_property(sprite, "frame_coords:y", 2.0, 0.0)
spike_tween.tween_interval(spike_time)
func _physics_process(delta: float) -> void:
$HeadHitbox.scale.x = $ToFlip.scale.x
func die() -> void:
spike_tween.kill()
spike_shape.set_deferred("disabled", true)