How do you have a new game/continue screen to load to the last scene?

I have looked at tutorials to load attributes, but I have not been able to find one to go to the last level. What attributes can I use to save and load a scene? I know that you cannot see the save feature in Creator, but I need to know what will work.

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Yes, a separate rule for each scene. If you want the scene to change when a goal is scored, then yes that's where you'd save and then change the scene.

    So part of learning GameSalad is just that... learning GameSalad. While I could tell you what to do step by step it would probably take me a while and I'd feel compelled to charge you for my time. What I prefer to do is to give you suggestions and then have you post what you tried and what worked/didn't work. Then I -- and others here -- can help move you along when you get stuck.

    If you'd rather have someone build the app for you or make a tutorial video, send me a private message and we can work something out.

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

Answers

  • CORE GameCORE Game Member, PRO Posts: 280
    You can use either tables or save attribute, lets go with an easy way of saving,
    adding the save attribute will allow you to save the current level for example level (3)
    whenever you start the game you should call the saved attribute, and use if rule to go to the scene accordingly , so if (saved attribute is 3) go to scene 3 .
    if you need more explanation let me know.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Here's what I do: each time I change the scene, I add a behavior above the Change Scene behavior that says Change Attribute game.currentScene [a text attribute] to [and then I type in the name of the scene I am switching to]. That way, game.currentScene always contains the name of the current scene. If I need to go back to that scene, I can have a rule that says When game.currentScene = [the specific name of a scene] --> ...

    You can, of course, do this with numbers instead of text. I just like to be able to see the names of the scenes within my rules.

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

  • CORE GameCORE Game Member, PRO Posts: 280
    Yes as @tatiang said, however If you want to have it (saved) so next time you run the game it will show which scene the player reached, you should also add a save attribute to @tatiang process or use tables to save the current scene.

  • LoungeGamesLoungeGames Member Posts: 86
    @fsoufi: Since I won't be able to see it until it is done, I would like more explanation. If it helps you, in the game, When you touch the goal, it says "Go to scene: Next Scene". Is it able to recognize the name of the scene just by that, or do I need to create a different behavior for each one? Also, how does it recognize which scene to go to by a number? All my scenes are listed as the name of a level, such as "Level 2-3", etc. Also, I know nothing about tables, so I will definitely need more explanation on that, but it sounds like it would be the best way to do this. Let me know if there is a tutorial to do this step by step.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You can search for posts and videos about tables by googling tables gamesalad.

    You can't reference a scene by name or number, but you can set up rules based on the value of an attribute: When game.sceneToGoTo is 2 --> Change Scene [level 2 scene name]

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

  • LoungeGamesLoungeGames Member Posts: 86
    @tatiang: I still don't quite understand. I am guessing I do need to create a different rule for each of the scenes, am I right? Also, when the character touches the goal, is that where I put the change attribute for sceneToGoTo and the save attribute? It would just be best if you told me exactly what I need to do step by step.
Sign In or Register to comment.