Fixed a bug with early respawn
This commit is contained in:
parent
95256fccce
commit
cc0b06d8b4
2 changed files with 1 additions and 0 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue