Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | GambitTheOG |
I’m using a main control to change scenes in a visual novel and I can’t get to the main menu without cutting out my change scene func:
var sceneCall = 1
var sceneComplete = 0
var sceneInProgress = 0
func _physics_process(delta):
if not sceneInProgress:
get_tree().change_scene("res://Scenes/scene" + str(sceneCall) + ".tscn")
sceneCall += 1
sceneInProgress = 1
The main control script is set as a singleton. I can’t figure out how to stay on the menu screen when starting the game.