Text input from previous scene appearing at start of next scene

nakki1718nakki1718 Member Posts: 25
edited May 2012 in Working with GS (Mac)
Hey Everyone, I am currently working on a game that involves the user inputting an answer each scene. Now on the first scene its great but as soon as you click continue and the next scene appears the previous answer (text input on keyboard) is appearing in what should be a blank space for their new answer..... Is it something simple i am missing? Any help would be brilliant, thank you so much in advance :)

Nakki

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    You need to have a "reset scene" actor (you can call it anything you like) on each scene that does Change Attribute game.answer to [blank] either without a rule (so it runs automatically at scene start) or within a rule with a condition like When game.Reset is true.

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

Answers

  • JustMe74JustMe74 Member, PRO Posts: 542
    I would guess that you're storing the text in an attribute and not clearing it. Since variables are global in GS, you have to think of the implications across multiple scenes.
Sign In or Register to comment.