Godot Version
V4.3-stable
Question
Im new to godot and need help with my code. There’s an error code saying “Assignment is not allowed inside an expression.” I have a script named “Global” that is in the global setting in project settings
extends Node
var Scene = preload(“res://Scenes/Bankrupt.tscn”)func _process(delta: float) → void:
If Global.money = 0:
get_tree().change_scene_to_file(“res://Scenes/Bankrupt.tscn”)