more various tweaks to held items and chests in order to make carrying chests fun

This commit is contained in:
derek
2025-03-04 17:02:52 -06:00
parent e84aea9ef7
commit 5d989470a6
20 changed files with 111 additions and 106 deletions

View File

@@ -25,6 +25,9 @@ func _on_area_3d_body_entered(body):
if body.is_in_group("player"):
can_jump = true
player = body
if body.is_class("Chest"):
body.velocity.y = jump_amount
jump_sound.play()
func _on_area_3d_body_exited(body: Node3D) -> void:
if body.is_in_group("player"):