Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

FWIW, get_tree().paused = true/false and, critically, in the Node section, make sure your pause menu is either Paused or Always it can run while paused. I have global.gd autoload with a toggle_pause function (it’s _ready() sets itself to Always).

Another thing to be careful of, make sure you manage tween and timer process mode too. If you use get_tree().create_timer(), since it’s part of the scene tree, it always runs by default vs create_tween() inside of a node, which inherits it’s parent process state so generally behave correctly. At least I think it’s this way, might be the reverse.

(2 edits)

get_tree().paused = true …

make sure your pause menu is either Paused or Always

That’s what I tried. But I must have made a mistake somewhere.

It wasn’t working immediately, so I forced myself to not get hung-up on it, and try work on other parts.

I guess now’s a good time as any to try fiddle/tinker to see what I might have done wrong.