Use a preloaded scene to give the player the starting gear rather than making a duplicate of the gear on spawn, and strip any gears from the backpack on death. Remove Gear from the editor scene tree and add it on respawn(). |
||
|---|---|---|
| .. | ||
| camera_gimbal.gd | ||
| player.gd | ||
| player.tscn | ||