Change difficulty

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

Hi i am a totlly beginner at godot and i am having a realy big problem with changing the difficulty.
So basically after you play the first level of the game then it will show a win screen witch is in another scene and then you go main menu and what i want is that when you press the same play button like at the beginning you will be teleported to the same scene but with differect difficulty (variables in code) such a longer game time and so on. but i just cant find anything that will solve my problem

:bust_in_silhouette: Reply From: a_world_of_madness

You can set up a script to be always loaded across scene changes. This is called a singleton class (check the docs), and you can use it to store the difficulty level, and increment it at the end of each game. During gameplay, you can retrieve the difficulty value and change the gameplay accordingly.