Home > other >  Keyboard input method to realize the word cocos creator players
Keyboard input method to realize the word cocos creator players

Time:09-29

Beginners want to do a little game completion words, a word, hollowing out the word, keyboard input word by the player, then the word and the known the answer proofreading, the winner will be inconsistent, consult: cocos realize player manually input method of Chinese characters, thank you

CodePudding user response:

Using editbox control

CodePudding user response:

Thank you, I will editbox precast body, and then use scripting to generate several editbox, write lyrics by the player, but I will not be the player input information compared with preset answers, please answer on my hands and knees

CodePudding user response:

By the players in each editbox to fill in a word, consult: what I want effect is same as scheduled the answer if fill in the word, the font turn green

CodePudding user response:

 
//change monitoring, equal judgment on cc. Color, GREEN, or your custom GREEN
Enclosing editbox) node) on (' text - changed, enclosing the callback, this);
  • Related