Tables Question?????

How can I display text on one actor and a touch reveals text on a second actor when it is random?

I currently have one Actor that asks a question randomly. This is working just fine. It also will not repeat the random question. I am using an index for that.

I now would like to have an answer display when a button is pressed.

So, I may approaching this wrong. I was figuring I may need a way to reference the row number the question actor is showing to show the answer. Not sure how. I would love some help on this issue.

As a frame of reference this is a question & answer flashcard informational app I am working on.

Thanks for any help on this issue.

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    I am currently coding a trivia app for a client. It involves a table of questions each with four answers that get randomized (i.e. ABCD, BCAD, etc.) and the questions themselves are in random order.

    If you'd like help coding or someone to explain this (e.g. video tutorial or skype), send me a private message and we can discuss what you're looking for.

    You're on the right track because you do need to keep track of the question row number and use that to display an answer (e.g. also stored in the table). One way to do this would be to have the Question actor display (via DisplayText) the question from the table when a boolean game.Question answered is false and then display the answer when game.Question answered is true.

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

Sign In or Register to comment.