Godot Version
v4.3
Question
` I’m following a tutorial series on YouTube for making a proper splashscreen and in the tutorial, they have me use a global script, which this is my first time using. This is the video in question that I’m having problems with for the full context: https://www.youtube.com/watch?v=32h8BR0FqdI
The line where I am encountering the error in the title is at 3:47 on the bottom. Or it reads as follows:
func _unhandled_input(event: InputEvent) -> void:
if event.is_pressed():
Global.game_controller.change_gui_scene("res://scenes/main_menu.tscn") #Line with error
They had me setup the global script in the project settings and in my game controller script, the part where I assign the variable Global.game_controller to the game controller itself seems to work just fine but this is giving me problems and I can’t figure out why.
Any help would be appreciated, and thanks in advance!
`