Fixed player getting stuck walking aon death.

godot4-port
unfa 2020-09-26 00:32:11 +02:00
parent 6eb54f9352
commit bd1b200964
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,10 @@ master func kill():
func spawn():
is_dead = false
health = 150
velocity = Vector3()
walkDirection = Vector2.ZERO
game.get_spawn_point().spawn(self)
$MeshInstance.show()