duck jumping makes sg's jump one pixel higher

This commit is contained in:
penelope 2023-06-08 17:21:34 -04:00
parent 29e8f77d5c
commit 48180bad64
2 changed files with 14 additions and 0 deletions

View file

@ -373,3 +373,8 @@ func _process_movement(delta: float) -> void:
func _on_Hitbox_body_entered(body: Node) -> void:
if body.is_in_group("death"):
die()
func _on_Ducking_event_received(event):
if event == "jump":
position.y -= 1