Save - Freze the scene?

Hi,

I have searched for over a month and watched youtube videos but cant seem to figure out how to simple save the current scene by freezing it and later loading it (after turning off the game)?

Any feedback is appreciated.

Thanks

PS: I have other questions but will wait for an answer to this one before I proceed.

Comments

  • Bad wolf GuyBad wolf Guy Member Posts: 206
    Simple answer, you can't save a scene.

    Complex answer, you can save everything such as actors positions, scores and values but it will take a ton of rules. There is no save scene behaviour.
  • quantumsheepquantumsheep Member Posts: 8,188
    Funnily enough, this was one of my first requests when I started using GS back when it was all new! (there was NO save behaviour at all back then!).

    The way it actually works is far better. The control over every aspect of what can and can't be saved is actually far superior to what I was asking for.

    Yes, a simple 'save everything' would be handy, but a little more effort will yield better results.

    Also, you may try saving all your variable to a table. I've not done it myself yet, but it could be a better way of saving what you want from a scene.

    Hope that helps!

    QS =D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • FajlajpFajlajp Member Posts: 666
    If you really need to save your scene, you need the save the position,score,angle etc. This will help you to make everything freeze. (But the video does not show how to save everything,just how to freeze) It will help you on the way.

    //Fajlajp
  • Adam3k3Adam3k3 Member Posts: 11
    Thanks for the reply guys. The thing is, Im using a game where you move from level to level "Scene to Scene" and I want the user to be able to save that level and return to it later.

    Not sure if saving positions will do this, any more advice?
  • natzuurnatzuur Member Posts: 304
    Best way would be what QS outlined, running your systems on tables and saving the tables with values for every aspect you wish to be saved. Such as score, level, x pos, y pos, currency, etc to that table. On load you can either change attributes to contain those values stored in the table or if your systems run on the tables themselves, you don't have to change anything.

    You can also make a multislot save system fairly easily with this method by copying a "running" table to one of several "save" tables (blank tables used only to store data by being copied over).

    I would give http://cookbook.gamesalad.com/tutorials/2/parts/36 a read.
Sign In or Register to comment.