So I've got this "score popup" which is basically a label with an animation displaying what score the player got when killing a certain enemy. E.g: "+100" or "+300". Problem is that, whenever I add this scene as a child, a lag spike occurs. Why is that??
Code:
extends Node
func _ready():
$AnimationPlayer.play("up")
func set_label(text):
$Label.text = str(text)
Nodes:
