back to menu after lost
This commit is contained in:
parent
8071cba7ce
commit
08972cbbc2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ func tir():
|
|||
get_tree().get_root().call_deferred("add_child", objectBalle) # ajout de la balle
|
||||
|
||||
func mort():
|
||||
if get_tree().reload_current_scene() != OK: # reccomence au début
|
||||
if get_tree().change_scene("res://scenes/Menu.tscn") != OK: # reccomence au début
|
||||
print("Une erreur est survenue lors du rechargement de la scène.")
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
|
|
Reference in a new issue