more various tweaks to held items and chests in order to make carrying chests fun
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user