Hello Hello
I need your help please.
I'm writing a game that displays a lot of text boxes (which I write)
And I want to check how many characters are in each text box. Then it will give me an output (for example that text box has 20 characters)
Is it possible?
Thank you very much this will help me a lot
len(text)
Return the number of characters in text.
Thanks for the response but...I didn't quite understand...
Could you please expand?
Thank you very much appreciated
You need to replace "Text" with the text you want to count the characters of. You can directly write a string in there like
len("This is my text")
Or you can reference it from the text object like
len(Textobject.Text)
Textobject is in this case the name of your textobject.
Develop games in your browser. Powerful, performant & highly capable.
It works great! Thank you very much!!!