Editable text box which provides an answer?

zak@applezak@apple Member Posts: 8
edited July 2012 in Working with GS (Mac)
hi guys how would i be able to provide the user with an editable text box which they can keyboard text in and then they press enter and it says wrong or right answer if right goes to next slide how??
can't seem to find answer anywhere?

Answers

  • PhoticsPhotics Member Posts: 4,172
    edited July 2012
    I haven't tested this... but if I was to attempt this, I think I would try the following...

    Game Attributes...
    - Correct Answer
    - Player Answer
    - Field Checker

    Scene loads...
    Set Correct Answer to X (Table with correct answers)
    Set Player Answer to Blank
    Set Field Checker to Player Answer

    Player Answer is the field changed by the keyboard input.

    If Player Answer not equal to Field Checker,
    -- Rule inside the rule... If Player Answer equal to Correct Answer
    -- Make happy sound, and then go to next scene after a few seconds
    -- Otherwise, play sad sound and set Field Checker to Player Answer
  • zak@applezak@apple Member Posts: 8
    I haven't tested this... but if I was to attempt this, I think I would try the following...

    Game Attributes...
    - Correct Answer
    - Player Answer
    - Field Checker

    Scene loads...
    Set Correct Answer to X (Table with correct answers)
    Set Player Answer to Blank
    Set Field Checker to Player Answer

    Player Answer is the field changed by the keyboard input.

    If Player Answer not equal to Field Checker,
    -- Rule inside the rule... If Player Answer equal to Correct Answer
    -- Make happy sound, and then go to next scene after a few seconds
    -- Otherwise, play sad sound and set Field Checker to Player Answer
    ok bit confused when addind attribute which like one do i select i.e text ,bollean etc..

  • edhogshireedhogshire Member, PRO Posts: 12

    Anyone have an example for this? I can't get it to work

Sign In or Register to comment.