how to rest the whole scenes ?
alzawadhadi
Member, PRO Posts: 19
Hi there
how do I reset a table to its original cell values when the user fail to pass a quiz ?
Comments
You need two copies of the table, one that is never changed and one that is changed during gameplay. To 'reset' the table you'll copy/replace the contents of the edited table with the contents of the un-edited table.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
how can I do that ? should I use copy table behavior ?
Yes. Also, when quoting a post, be sure to add an extra blank line after the quote. I fixed your post for you
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Yep, copy one table 'over' the other.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
it did not work with me ?
to clarify for you:
I have more than one level, Each level has 10 questions
when I fail in Level 2 and play the game again from Level 1
the questions are not shown !! I know that because I used the remove row in Level 1 so I don't have any duplication in the questions
how can I fix that ?
Are the level two questions in a separate columns of the table that holds the level one questions? Or are they in a separate table entirely?
When you start the game over, are you using the Reset Game behavior or are you just changing scenes? If you change scene, you need to manually change the value of any "important" attributes back to their original values. For example, if you have an attribute called game.questionAnswered or game.Start or something along those lines, they will have the old values until you change them back.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I got it know
I used the reset game behavior