How on button pressed to remove the last character from a sprite font? There's an append action (Append Text), but no way to remove a letter.
This is pretty much what I want to do:
Variable = "Value" Text = Variable Letter = "Q" On Button A pressed -> Text -> Append Letter -> System -> Set Variable to TextSprite.Text On Button B pressed -> Text -> Remove Last Letter? -> System -> Set Variable to TextSprite.Text // On A pressed will output "ValueQ" and I need on each B press to remove one letter from the back [/code:3hv1bxii]
If I understood correctly ...
Spritefont set text to.............left(SpriteFont.Text,len(SpriteFont.Text)-1)
left(text, count) Return the first count characters of text. len(text) Return the number of characters in text.
left(text, count)
Return the first count characters of text.
len(text)
Return the number of characters in text.
Develop games in your browser. Powerful, performant & highly capable.
Yes, thank you! That's works like a charm.