If I pause my game and want to resume it, the game restarts.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rollyes

My resume button is with this code: get_tree().change_scene(“res://Scenes/Game.tscn”)

try get_tree().paused=false

estebanmolca | 2020-01-17 08:08

:bust_in_silhouette: Reply From: Zylann

change_scene destroys the whole scene to replace it with another. So it will indeed restart your game if it was all contained within the previous scene.

You may want to use the pausing feature: Pausing games — Godot Engine (3.1) documentation in English