I need help with keyboard input PLEASE HELP!!!!!

so im creating this game that you have to match a text attribute with what you put in the keyboard input so that you have to figure it out... like if you put a picture of a car and you have to guess what it is and you have a button that says solve it so you click it and you have to type car so that you can move to another scene that says you guess was correct
... so how do you make the writing that the customer is putting in with the keyboard be checked to see if it is the same word saved and then move to another scene that says its ok that the keyboard entry matched the word that i set up for that level...

thanks for those who will help me

Comments

  • quique13quique13 Member Posts: 99
    so im creating this game that you have to match a text attribute with what you put in the keyboard input so that you have to figure it out... like if you put a picture of a car and you have to guess what it is and you have a button that says solve it so you click it and you have to type car so that you can move to another scene that says you guess was correct
    ... so how do you make the writing that the customer is putting in with the keyboard be checked to see if it is the same word saved and then move to another scene that says its ok that the keyboard entry matched the word that i set up for that level...
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited November 2012

    @quique13

    hi, firstly, please don't type your thread titles in caps! And try to make the title more descriptive as to what you need; and thirdly, don't make duplicate threads, simply comment on your own thread (after a minimum of, say, two hours) with the word "bump". This'll bring it to the top of the list and to people's attention again.

    OK, we've got that out of the way!

    Your prob., a solution in a nutshell, untested and off the top of my head but should work out (you might want to amend the gameplay to suit):

    • Let's assume you've called the attribute that changes in your Keyboard Input WordInput. Make the Keyboard prompt: touch a picture

    • Make an boolean attribute, called CheckMatch

    • Make an boolean attribute, called Answer

    • Make a Text attribute, call it WordPick

    • For every word used for a picture, make a new Text attribute. So for the car picture, call it PicCar and make its value, car. PicHouse, its value to house, etc. In the actors for the words under each pic, use Display Text and put in the appropriate Text attribute to display the word via its attribute.

    • In each of your pictures, put

    Rule: When CheckMatch is false
    Change self.Color.Red to 1

    Rule: When touch is pressed
    Change CheckMatch to true
    Change self.Color.Red to 0.5
    Change Attribute WordInput to- type the word
    Change Atribute WordPick to PicCar ---- change this for each picture

    You'll need a word input actor....in it's Rule put:

    Display Text WordInput

    Rule: When Touch is pressed AND CheckMatch is true
    Keyboard Input behaviour Change attribute WordInput

    Change CheckMatch to false

    When WordPick = WordInput
    Change attribute Answer to true
    Otherwise
    Change attribute Answer to false

    THere's more refinements, changes, etc., that can be made to the above depending on your type of game, and the degree of detail you want to add.

    Hopefully it'll get you started.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Mergd duplicAte threads into the non caps one. Please don't create duplicate threads on the same subject.
  • quique13quique13 Member Posts: 99
    sorry for the titles and thanks so much for the help
Sign In or Register to comment.