Parser Error: Expected end of statement after expression, found "Identifier" instead.
extends Node

@onready var points_label = %PointsLabel

var points = 0

func add_point():
points += 1
print(points)
points_label.text = "Points: " str(points)

  • xyz replied to this.