- Title: HTML5 Saving Game With INI File
- Description: Since the default saving features of GM don't work with GM:HTML5 A lot of questions have come up on how to save a game.
- GM Version: GM:HTML5
- Registered: Yes (No free version)
- File Type: .zip, .rar
- File Size: 1.98MB
- File Link: Version 1 ZIP File RAR
- File Link: Version 2 ZIP File RAR
- Required Extensions: N/A
- Required DLLs: N/A
With Game Maker: HTML:5 you can no longer use the built in saving functions of GM. If you want to save a game, you now must use your own method. This is a VERY basic way of saving a game with an INI file. I avoided complicated code to make it as simple as possible, however it is in GML and not D&D. Hopefully this example will give you a jump start to understanding the process of saving a game via an INI file. This version only allows 1 save slot.
HTML5 used Local Storage to save your ini files on the end users PC, not on the web server.
You can see it live HERE Play a couple levels and save your game. The restart it and you will see the load button to load your previous game with.
UPDATE: I have has several people PM me about multiple save slots, so I have created a revised version that features 3 save slots instead of just 1. I am keeping both in the topic as the 3 slot version is slightly more complicated, so If you do not need multiple save slots use the first one. When you open the game, click New Game and you will see 3 save slots. They should
all say NEW. LEFT Click one and enter a name then press enter. Then you can click your name to start the game. RIGHT click on a slot to delete it.
INI Saving 2
You can see it live HERE
Download it here:
ZIP File RAR
Edited by Destron, 25 March 2012 - 08:07 AM.