|Topic was automatically imported from the old Question2Answer platform.
I have this issue: I have created a spawner that creates infinities objects(KinematicBodies2D). When an object touches an Aread2D then the object disappears(i use signal from Aread2D to object).What i want, is when the object touches the Area2D then a GUI counter high on the screen to show me the score (counter=counter+1). i did a try with a signal from Area2D to a Label but a Label accept only strings.I searched on YouTube but there is no an appropriate video about this case. I show some videos that some guys that were using labels and that was weird…Is there an appropriate node that accepts integers?Any idea please?
try keep a
var score in the
area2D’s script and then just display it on the label
rustyStriker | 2019-05-18 13:05
First of all thank you very much about your reply.Basically i used the “text” Label’s property and then “set_text(str(score))”. So, i managed to show the score on the Label but now the problem is that every number is written on the previous one …
Nick888 | 2019-05-18 18:59