Save Game After Force Closing App?

Discussion in 'Buildbox 3.0' started by tonymartz2, Apr 25, 2019.

  1. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    hey team, I did a quick search but did not find anything,
    if im playing my game and lets say die on level 3. minimize the game and open other things or come back to the game later then it continues where I left off or restart lever 3 as I have it. But
    then I foreclose the app or restart the iPhone, then open app it resets to level 1.

    what Im I missing?
     
  2. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    do you use event observer ?
     
  3. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    yes for game over
     
  4. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    Well i had faced this problem 2 days ago and the reason is using too much event observers , anyway i am sure i can help you solve this if you make a video where you show the menus of your game or at least explain how you organize levels, unlock buttons, event observers or if there is any menu jump and what type of event observer do you use to track if the level is completed.... ?
     
  5. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    Good morning,
    I have 10 worlds each with its own UI
    upon gameover you restart at that current world.
    all worlds are linked to The same gameover IU (is this the right way?)
    if i'm on world 8, I must continue playing untill I clear that level to move on to the next.
    my issue is that if I restart the phone and re-open the app, it starts back to the 1st world.
     
  6. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    is everyone sleeping? lol
     
  7. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    can anyone explain how levels work, how data is saved.
    currently I have 10 words, at the end of each world I have a level completed UI and a next button that leads to the next world. on game over that current level restarts but if I foreclose the app and re-open it then it defaults back to world 1.
    I have a game over event observer... what Im I missing?
    thanks
     
  8. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    i have same problem, so this happend because there is not checkpoints, if u remember in bb2 we saved game with checkpoints, there is something like level select node but it is not working
     
  9. chrissy_wissy2

    chrissy_wissy2 Avid Boxer

    Joined:
    Oct 21, 2015
    Messages:
    161
    Likes Received:
    72
    On the main UI you have to stack all the lock buttons in descending order, ensuring the ‘block touch through’ option is unticked. You will then be able to connect each lock button e.g lock button 1, to world 1 and so on, and this should do the trick. When you force close the app it will then start from the world you were last on.
     
  10. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    can u show example???
     
  11. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    so i made it but game nodes look this, when i am clicking startt button it begins from level 1 again how to do???
    https://imgur.com/a/dxA0HwM
     
  12. chrissy_wissy2

    chrissy_wissy2 Avid Boxer

    Joined:
    Oct 21, 2015
    Messages:
    161
    Likes Received:
    72
    Do you have any lock buttons in the UI rather than start/navigation buttons? I may be able to show you but a bit later when I get home. My mind map set up is with 40 levels so far and it works a dream apart from if you die at level 2 it restarts at level 1. Try adding more worlds and add the lock buttons to the main UI (stacked on top of each other) then connect the buttons to the worlds and this will work. Sorry if this doesn’t make sense
     
  13. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    for me problem is startt button not restart, start button in start menu starts game from level one,
    please wheb u have a time share us screenshots
     
  14. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    yes please send us some screen shots of game map to try to figure this out.
    I'm sure its simple but im not understanding lol
    thanks
     
  15. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    update:
    I BB support responded to my email with

    Wed, Jun 12, 2019 at 09:11 AM,
    "We are working on brining checkpoints in to bb3 in a non code way. But if you want to code a little bit there is a way to Store anything in to Settings class. and that class will automatically restores/saves during game load/unload
    Settings.myVariable = position

    you can use Settings as a place to store all your info
    and then you can read it by simply
    let position = Settings.myVariable;
    but this is coding solution, for non coders we are preparing a easy and solid way to do so."

    unfortunately I have no idea what he means or how to code this...
    checkpoint may not be available for weeks/months (hopefully I'm wrong)

    can someone do a tutorial? please ;)
     
  16. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    I got same copy paste mail :D
     
  17. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    it's frustrating :mad:
     
  18. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    any info on checkpoints? @Josh (Tekanology) @NikRudenko
    Miko told me it was going to be available soon but its been over a month....
    starting from over from world 1 after foreclose would is an app killer...
     

Share This Page