fuzzyworld

godot-shooter / commit

Show mouse once the player dies.

f3af995e6af0b235d03d3fc84649d146eaf3e6e7 · Pavel Safronov · 2023-11-06 14:07:06 -0800 · parents 610a86be0da0

Show mouse once the player dies.
 Player.gd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Player.gd b/Player.gd
index c4cf544..86bd483 100644
--- a/Player.gd
+++ b/Player.gd
@@ -39,6 +39,7 @@ func kill():
 	$Graphics/Dead.show()
 	$Graphics/Alive.hide()
 	$CanvasLayer/CenterContainer/DeathScreen.show()
+	Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
 	z_index = -1
 
 func heal(amount: int = 1):