Type a certain word to make an object function

Example:
I type ' grrr ' and my actor gets angry and spawns a bomb.
How can I make this work?

For you information:
I tried to use the 'when key is pressed' rule but I can only type one letter.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    You'd need to use the keyboard input behavior - using that brings up the keyboard for the user to type in anything. Then create a rule saying that if they typed in grr, to do something. Note that you'll need to use a text attribute in the keyboard input behavior.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2013
    I take it this is a Mac/Web game? If it's going to be on a device, you'll need to make a custom keyboard or use the Keyboard Input behavior.

    It is possible (though tedious) to do this without the keyboard input behavior as long as the user has a physical keyboard. I changed the word from 'grrr' to 'bomb' because having repeated letters (rr) causes a problem with the rules.

    Edit: I take that back. Creating the rules to clear the word when an incorrect letter is typed would be a major, major headache.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.