Answers for "unexpected token if godot"

1

unexpected token godot

# If when you type a variable, for example:
var health : int = 50
health == 50 
# and an error saying 'Unexpected token' is shown it is because the variable needs to be inside a function.
# for example:
var health : int = 50
func check_health():
	health == 50
Posted by: Guest on August-07-2021

Code answers related to "unexpected token if godot"

Browse Popular Code Answers by Language