Make a game run in the background for incremental games

Just an option in the properties that allows people to make the game always run even if the window of the game isn’t focused. This allows for AFK gameplay that most incremental games and town building games rely on.
image

As a heads up, GDevelop games run in chromium via electron.

Generally browsers cannot be made to run in the background in most mobile situations.

However, Idle games do not actually run in the background. They track the current timestanp and compare it to the last ‘updated’ timestamp, to do their calculations.

You can see many examples and instructions for how to do this throughout the forum, as people have asked how to do it quite a few times.