Construct2 game save? HTML5

0 favourites
  • 12 posts
From the Asset Store
Creating Artificial Intelligence Games Using Construct2 and Construct3.
  • Hello, I'm new to Construct2. This is my first stop, actually!

    Is it possible to create larger games with Construct, than simple platformers. RPG's for example, where a player can save a game in a more elaborate way. I understand that Javascript does not have facilities to save files to a users computer and HTML5 is for presentation. What can you do with Construct2 in this way? Are we limited to cookies?

  • it CAN SAVE: just use: webstorage + offline cache

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep , No local drive saving is not possible tho ...

  • Well, WebStorage saves to a user's hard drive, which is how it persists the data even after turning off your computer. But the browser handles the storage rather than allowing you to choose a filename.

  • Well ... You can't save to files ... It's possible , but not secure , so Browsers disables it ...

    You ain't suing C2 , C2 is EPIC <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Although I haven't used it C2 supports posting to URLs so you could have a website with a DB and store info there but that means the player needs to be online. If C2 allowed you to edit code then you could use sqllite which can be downloaded to the local to computer from you game but it dosent right now.

  • Well, WebStorage saves to a user's hard drive, which is how it persists the data even after turning off your computer. But the browser handles the storage rather than allowing you to choose a filename.

    Ashley I'm curious how do you make a backup?

  • I was wondering... Is it not possible to write users data in a xml file, his name and password, his checkpoints reached, his health bar or whatever ? He could login in the game, and we search an entry in the xml file to reload his progression ?

  • You could also save it in a database ;)

  • Is there a database access on Construct 2 ?

  • Sylvain , check for AJAX ... And mySQL

  • So WebStorage of HTML5 acts very much like cookies, but if more flexible. It does persist like Ashley said after all browsers are closed and after the computer has been turned off. But its downside is IF a user clears their cookies AND unchecked (in IE) the Preserve Favorites and Websites data checkbox it will clear the WebStorage.

    You cannot write to XML or other files for long term storage because as someone has previously said, that is a limit imposed by the Browser and is a security violation.

    So posting to a website/URL and that triggering a save to an online database is the only option I can think of at this time. You can also allow players to play offline and when they are back online have it save to the web those changes, but not sure how that would be coded in C2.

    The ideal long term solution would be for C2 to enable support for SQL Lite databases on the local computer much like Apps do on Mobile.

    Brett

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)