Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Scxf_mycs |
So i have a problem with my little game it says “Unexpected token ‘$’:” heres the code:
extends Node
var experience = 0
func _ready():
$TextureButton/Label.text = str(experience)
func _on_TextureButton_pressed():
experience += 1
$TextureButton/Label.text = str(Experience)
Dont know why it doesent work.