Return to previous scene

raciukas22raciukas22 Member, PRO Posts: 47

Hi, I want to have a scene where it should have a button which links back to previous scene, I mean not to previous as scenes a listed in game salad but the one user came from. For instance user goes through game and decides to see his awards and clicks awards button in the scene he is brought to award scene and once he clicks on the return button it brings him/her back to the scene he was before the awards scene. Many thanks.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Very simple to do.

    Create a rule in your button:
    When touch is pressed condition.

    Place a change scene behavior in the rule and now simply select which scene to change to via the drop down list.

    You can also use the Index feature to dynamically change scenes. Check out the tutorial below.

  • raciukas22raciukas22 Member, PRO Posts: 47

    Thanks a lot, but sorry thats not what I meant. There are 10 scenes which all link to award scene. If i click from scene 3 to awards in the awards scene I want to come back again to the scene 3... If I click from scene 6 for instance to awards scene, from awards scene I want to come back again to scene 6 using the same return button on awards scene...

  • IceboxIcebox Member Posts: 1,485
    edited March 2016

    @raciukas22 instead of change scene use a pause game behavior that takes you to the awards scene and then unpause game which will take you back to the scene you were on.

    In your award button put a pause game behavior - choose award scene
    In your return button on awards scene put unpause game behavior

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Here is a way to keep a list of the the previous scenes. Then you can go back through the list.

  • raciukas22raciukas22 Member, PRO Posts: 47

    Thank you all!!! Much appreciated!!

  • raciukas22raciukas22 Member, PRO Posts: 47

    @Icebox said:
    @raciukas22 instead of change scene use a pause game behavior that takes you to the awards scene and then unpause game which will take you back to the scene you were on.

    In your award button put a pause game behavior - choose award scene
    In your return button on awards scene put unpause game behavior

    Really worked!! thanks

Sign In or Register to comment.