-
Yeah I can definitely see as one can work so much in something,
while collecting ideas for new projects - being stopped by the need to finish the current one - feels baaad XD
you want a full stop and move to new grounds!
Won't surely suggest extra work if you don't feel the need to XD
(one fast solution could simply be a single scoreboard you would reach at any game over/ game end,
can be the frame you already use for the endless runner,
would collect a single "score" global value shared among all frames,
but then yes, you'd have to add single add-score events in each of your minigames...)
-
Super ready to begin game number 2!!! XD. Will soon purchase HTML Exporter and prob hit you up again. Thanks Schrodinger!
-
1 Attachment(s)
No problem!
Btw, I just tried exporting your project to HTML5, just to see if things would have gone smooth
(and found the option we were thinking at: "load at start", so you can choose wether to load all at the beginning or load on need
but can't really test this very feature now because I would need to upload this on a webserver, and would take me some extra time..)
The only issues I can see are:
-Text blitter
-File object
These objects are not supported by HTML5.
But I guess they are not strictly needed.
There is a very cool extensionless text-blitter object made by BartekB if you need,
were you using text blitting in dialogues or for less-extensive tasks?
Btw, you were using the file object for..?
Other than that... here's your game in a browser window :D
Attachment 19126
-
Hahahaha! That looks so funny to see my game. Thanks Schrodinger.
Okay, I was using the Text Blitter to make a Game over screen look good. Just erased Text Blitter and created something simple! Now the file object. Oh no! I was using it with an Array to save and load the game. It was the example that Casleziro was helping me with. Hmmm. What now?
-
I may not be the best one to reply this, as I'm not new to HTML, servers, databases and websites,
...but I'm quite fresh to HTML5 and HTML5 exporter, still not had very much time to experiment.
Afaik, saving and loading an online game can be a quite different thing than doing offline.
You would like each player to be able to save its own progress and retrieve it later?
Tbh, I still never tried to save arrays from HTML5 pages into local machines,
I don't know if it is possible at all to store files in the user local machine from HTML5 "sandbox" and then retrieve back data (i.e. like a cookie)
(..would be interested to know, if anyone bumps in with an answer XD)
Or you could possibly give unique IDs to your players and save all datas in your server.
How much data are you saving now in the array?
You could even consider using the same database you are already using for online scores.
But you would need:
1) to give players an authenticating system, so your database know who they are when they come back
2) to save their IPs, but these may easily change so won't be a solid solution
3) use cookies to store a token in their machine, and then retrieve them to authenticate
If data amount to store/retrieve is very limited (i.e. game level reached),
you could consider a password system to entirely avoid saving data and save yourself some hassle XD
-
I doubt the array is saving much data. It just saves if mini game one has been completed, unlock mini game two etc... It doesn't save positions at all. Password system like classic Mega Man would be funny to implement. XD. I remember having to draw those little ball things on a grid. Hahaha. If anyone can jump in that has saved and uploaded their game with HTML5 and arrays, please lend your help. This is a big part for me learning Fusion!
-
Emerson - forget about it
Seems there's no problem in saving arrays in HTML5
clickteam guys just thought of everything XD
See this very quick test I did:
http://lizardking.co/save_test/
write something in the edit box, hit "save"
then hit "load"
you should see the text pop in again in the edit box
The text is retrieved from an array file, saved and loaded back - seems there's no problem in saving it!
I guess it directly goes to the browser's cookies (or more probably local storage? as cookies size is very limited),
because I can't retrieve it from a different browser - this saves in a new session in new browser.
Cool to know!
I'll come back next days to check these "cookies" lifespan.
And you won't need the file object to do this :)
EDIT _________
just made some further researches,
since I was unable to locate the data stored by the browser in my machine
and found this paragraph in HTML5 exporter documentation:
Files
. Javascript cannot write or read any file on the machine of the user.
It can save and read data in a specific browser-dependant folder,
and read data directly from the web server where the application is located.
The Edit, List, Combo and Ini objects first try to load the data from a previous data section saved by the application. If they cannot find it, they will try to load it from the binary file section of the application. If the file cannot be loaded from there, they will try to load the file from the web server (the file should be located beside the html file).
Unlike the Windows runtime, the HTML5 runtime only takes the name and extension of the file into account when retrieving the file : the path and drive are ignored.
So we would rely on a browser-specific folder, and -I guess- browser specific cleaning times.
In short - can't be sure on the lifetime of your save file,
if the users cleans browser stored data, or if the browser auto-cleans its data after specific time intervals.
Will check back next days to see how much my saved test string will survive.
-
Oh great tests Schrodinger!
That is so exciting and brings me to this option. I created the game as a progressive type where the player unlocks the next mini game after completing the previous one. At the end of the game, the player unlocks a bonus room where they can play all the mini games as much as they want without having to play through story mode. I wrestled with the idea at the start game, load game screen, to have an option where they can play all the mini games without story mode. If the browser auto cleans and erases data then I might have to create this option since it'll be time consuming to finish the game in one sitting!
-
Just purchased HTML5 Exporter. Now it's time to figure this out and release game!
-
1 Attachment(s)
Cool! Looking forward to play your game(s) online :D
Not sure this data will be easily erased however.
I'm doing some research to see how this data is stored (this is interesting for my future projects too)
and seems like HTML5 data is stored in a "local storage" resource specific to single browsers.
To see what's inside your Internet Explorer storage,
you can hit F12, go to "console", type "localStorage" (in the bottom line of the page) and hit enter.
You will be prompted a string containing currently "stored" content on the browser,
and here's our array:
Attachment 19135
Since I use Firefox for browsing, this storage here on explorer is completely clean but for the array I saved yesterday.
Tried clearing cookies, removing history and temporary internet files, still my browser retains the data,
so I guess this won't be that easy to clear.
Not sure if would last "forever", but I guess this may be considered pretty solid.
Will keep testing and going in depth on this!