Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to make a "go to next scene" button

on my app, it's based on levels. So once you beat my level, I have a scene that comes up, and on the scene I want to put my "go to next scene" button. But, it will only go to the next scene I have lined it up with in my scene selector. And if possible, I would like to avoid making a scene in between every level. If anyone would help me, I would really appreciate it. Thx.

Best Answer


  • mounted88mounted88 Posts: 1,113Member
    Use the change scene behavior and select what level you want it to go to next

    He who knows nothing is closer to the truth than he whose mind is filled with falsehoods and errors.

  • future_games_101future_games_101 Posts: 58Member
    yes, that would work for one scene, but I want the "go to next scene" button to be at the end of every level. And I don't want to have to make a scene in between every "level scene" I have.(if I only had one "go to next scene" scene, it would just go to the next scene that the scene was above).
  • tatiangtatiang Posts: 11,714Member, Sous Chef, PRO, Senior Sous-Chef
    Since I don't understand what you wrote, let me start with an example. Let's say you have the following scenes:

    1. Menu
    2. Level 1
    3. Level 2
    4. Level 3

    On each scene, you would have a button with the rule: When Touch is Pressed --> Change Scene [next scene].

    So how is your setup different from that?

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

  • future_games_101future_games_101 Posts: 58Member
    ok, let me explain lets say these are my scenes
    2.level 1
    3.level 2
    4.level 3
    5.pause scene( go to next scene)

    ok so on the pause scene (when you press the pause button(which is on every level)) It has a home button, a "reset scene" button, and a "go to next scene" button. and I am having trouble with the "reset scene" button and the "go to next scene" button. because when I press the reset scene button it only resets the pause scene. and when I press the "go to next scene" button it only goes to the scene that is after the pause scene. which in this case would be the menu scene
  • PaxPaxPaxPax Posts: 106Member
    edited April 2013
    Let me take a stab at this. I am not exactly sure what you mean when you say " the ' go to next scene' button...". I am assuming it is the 'change scene' behaviour. The change scene behaviour defaults to 'next scene'. However you can change 'next scene' to any scene you want. Once you have your 'change scene' behaviour in your actor(in your case you refer to a button actor), click on 'next scene'. You will then see a list of all your scenes. Simply click on the scene you want to change too. Hope this helps.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,906Member
    edited April 2013
    You need a game level attribute that track what the active scene you are on. You can use an INTEGR and number the scenes 1,2,3 et... When each scene starts have it change game.level to it's associated number. Then in your pause menu have a series of rules nested.

    In each scene have change attribute at start.

    Change attribute: game.level to 1,2 0r what the level number is. By using only one attribute it will overwrite for each level and you will never have a conflict as to what level is active.

    Rule for leaving pause.

    When touch is pressed

    Rule inside the touch is pressed rule.

    When game.level = 1

    Change scene to level 1



    When game.level = 2

    Change scene to level 2



    When game.level = 3

    Change scene to level 3

    Keep adding rules like this in each otherwise section.

    If you want the scene to reset like play again it's best to have a pop up at the end of a level failure to ask "Try Again" or something like that and do a when touch is pressed reset the active scene. Going to a pause menu then to a reset scene is not advisable as pause means pause current action. Have the reset in the active scene and give the player the option to either replay or quit to the main menu.
  • future_games_101future_games_101 Posts: 58Member
    ok , frying bacon studios you are helping me a lot but I am very new to gs and I don't know a lot . I hate to ask, but can you tell me how to do this and go into a lot of detail. like when you said I had to make a game level attribute. were do I make it? on the actor , game , or scene. sorry for the trouble but thanks
  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,906Member
    Wow, I would recommend the videos as there is an extensive library of video made so that we don't have to go into detail every time someone has a question. Do a google search for gamesalad cookbook videos there you will find the answers about how to create attributes and use the behaviors.
  • Braydon_SFXBraydon_SFX Posts: 9,115Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee
    You can also head over to - we have dozens of free video tutorials available on our site.
  • future_games_101future_games_101 Posts: 58Member
    thank you so much code monkey, you don't know how much you helped me out. And thank you for taking your time and going into grave detail. and I thank everyone else for trying to help also
This discussion has been closed.