I found the problem as to why it wasn’t updating. I put the text = str(counter)
inside func _ready()
and when I instead put it in func _process(delta) -> void:
it updated with every kill.
It might have also been the fact that something else was wrong in the mob code or main code but just having get_tree().call_group("counter", "counterplus")
in the mob code before queue_free() and having the label in func _process(delta) -> void:
works.
This was my second project and I just followed a guide to make the game so I didn’t know that the text for the label had to be under that func.
Thank you everyone for your help!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.