What is "toString"?
So I have this piece of code which allows for a score to be displayed in my game
var plScore:int = 0;
score_txt.text = plScore.toString();
It then updates by 1 when the player collects an item
plScore +=1;
score_txt.text = plScore.toString();
It works fine however I want to know what "toString()" is and how it works in the context of this set of code as all I really know is that it allows for the numbers to be displayed as text in the level but I am unsure how it does it.
