The game over menu does not appear

Godot Version

4.2.2

Question

The game over menu does not appear when the player is killed by an enemy, but it does appear when the player falls into the void. Any solutions?

The enemies kill zone doesnt get the Game Over menu as a variable, because its a different path.
To fix this you can put the Game Over scene in a group called “GameOver” and then in the kill-zone script you do this:

var game_over

func _ready():
    game_over = get_tree().get_first_node_in_group("GameOver") 
1 Like

thanks it works :laughing: :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.