babyned's Forum Posts

  • 6 posts
  • Thanks Newt - by base64 do you mean a Data URI? Ashley mentions this here...https://www.scirra.com/tutorials/526/ho ... -savegames

    "whenever you save to a slot, also write a WebStorage key that indicates the slot has been saved to. You could add some other metadata like the player name or even a small screenshot of the game as a data URI"

    ...that's basically what I'm trying to do - I've got 12 slots, and I can save different game states in each slot with a small thumbnail - but when I load an earlier state, it reverts all the thumbnails to how they were at that point

    What would be really cool is if you could change an objects "No-Save" state in code. Then I could set the blank slots to "No-Save" when saving, but set them to "Save" When they have a thumbnail in them. Then, when I load an earlier slot, all the filled slots will be left alone.

  • Can't seem to find any working examples of this...I know how to take a Canvas Snapshot and I can get it to download but using Invoke Download but I can't seem to be able to store a screenshot in Local Storage and then retrieve it when running the game later.

    Is this possible in C2?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Is it possible to save the game state of a C2 HTML5 web game to an external URL or remote drive without taking a massive course in backend, databases or mysql etc?

    I looked into Google Play Game Services which are good but only allow you to handle achievements and hiscores etc. They do have a save game tool but this only seems to be available for iOS, Android and C++, not HTML5

    It looks like AJAX is the thing I need, but the tutorials here only cover how to use AJAX at the Construct 2 side of things.

    Amazon's Simple DB also looks useful, but I need to know how to get my game to talk to it.

  • Game data that has been saved using the savegame system object is deleted when clearing the browser history. I have tested the attached project on a windows PC, an iMac and an iPad.

    On the desktop machines it works fine. You can empty all the browser histories and caches and then reload your saved game data.

    If you play this on an iPad, save the game state, clear all browser history and caches, refresh the game and try loading, all data is gone.

    A live version of the game is here: http://fungooms.com/Test/

    This might not be a bug - it may just be an anomaly of the iPad, but it does say on Scirra's site "Savegames are not saved in the cache. The browser cache is a very much temporary storage......."

    https://dl.dropboxusercontent.com/u/15741639/iPad%20Bug/iPadbug.capx

    Description

    A simple game that lets you paint circles on the screen and either save or load the pattern

    Steps To Replicate

    • Run the game on an iPad
    • Draw circles anywhere by clicking and moving the mouse or touching the screen
    • Click or Touch SAVE to save your progress
    • To test that your progress is saved, refresh the page and load your last pattern.
    • Clear all browser history and empty browser caches][Run the game and click LOAD

    Observed Results

    The work that you did is not loaded. It appears that clearing the history has deleted your data.

    Expected Results

    As what happens on desktop, your data should be loaded back even after clearing history.

    Affected Browsers

    • Chrome: (YES)
    • Safari: (YES)
    • Firefox: (YES)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    iOS 9.2.1

    Release 221, 64-Bit, Personal License

  • ...Just to add to this point, as mentioned here: https://www.scirra.com/tutorials/526/ho ... -savegames

    "Savegames are not saved in the cache. The browser cache is a very much temporary storage that is used to save things like images on web pages without having to re-download them every time, and it's regularly cleared. Savegames don't go there (luckily), they are stored in either WebStorage or IndexedDB, which are permanent storages and are not affected by the user clearing their cache."

    This was why ~I wanted to use the save game function, but on both Safari and Chrome, once I clear the cache, my saved data is gone

  • I am making a brick building game designed to work on desktops and tablets with the ability to save your creation.

    http://fungooms.com/Funblocks/index.html

    At first I tried using the LocalStorage object which worked fine until I started emptying the internet cache and deleting the browser history. The saved data would then be lost.

    So I switched to using the save game system option. This seems to work fine on desktop but when I play on iPad, save my game state, clear the history and try to load the saved game it is gone.

    Where does Construct2 save the game data? Should it be getting cleared when the history is cleared?

  • 6 posts