fix head hitbox
This commit is contained in:
parent
20584fc8d3
commit
46bd32f3b2
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue