Fixed a bug with early respawn

This commit is contained in:
Paul Black 2023-05-16 11:52:29 -06:00
parent 95256fccce
commit cc0b06d8b4
2 changed files with 1 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -23,6 +23,7 @@ func _process(delta):
deathTimer = deathTimer + (10 * Global.respawnTimeModifier) * delta
if deathTimer > 100:
deathTimer = 0
Global.playerDeathHealth = 100
Global.playerPleaseRespawn = true # Used so the Teddy script will know to reset variables and position of the player
self.queue_free()
$deathBar.value = deathTimer