Restrict a the length of text

FirstDanFirstDan Member Posts: 208
edited March 2012 in Working with GS (Mac)
Hi all

How can I restrict a person from entering too many characters?

Example: I have an 'enter a name' actor that allows users to enter their name, but I want to restrict the length to about 8 characters?

Thanks

Answers

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'm not sure if you can, but I have not played with the keyboard function at all
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You'd have to use a custom keyboard (an actor for each letter) and then concatenate the letters that are tapped, stopping once game.wordlength > 7. It would be great if GameSalad had string and character functions in addition to the math functions.
  • FirstDanFirstDan Member Posts: 208
    thanks for your help chaps

    can anyone assist me further depending on this..

    dan
Sign In or Register to comment.