how to rest the whole scenes ?

Hi there

how do I reset a table to its original cell values when the user fail to pass a quiz ?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    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.

  • alzawadhadialzawadhadi Member, PRO Posts: 19
    edited January 2015

    @jamie_c said:
    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.

    how can I do that ? should I use copy table behavior ?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Yes. Also, when quoting a post, be sure to add an extra blank line after the quote. I fixed your post for you :)

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Yep, copy one table 'over' the other.

  • alzawadhadialzawadhadi Member, PRO Posts: 19
    edited January 2015

    @jamie_c said:
    Yep, copy one table 'over' the other.

    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 ?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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.

  • alzawadhadialzawadhadi Member, PRO Posts: 19

    I got it know

    I used the reset game behavior

Sign In or Register to comment.