How do I add a autosave feature into my game.

Get help using Construct 2

Post » Fri Oct 09, 2015 10:58 pm

I would love to add a auto save feature into my game without a button. I would love to save the highscore and eventually add a shop. Is there anyway to do this?
B
4
Posts: 12
Reputation: 224

Post » Sat Oct 10, 2015 1:17 am

I normally just save using localStorage...

How much are you trying to save?
- Highscores
- Entire game state

I think there is a save/load feature... but would need to check C2 for the exact event/action...
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,068

Post » Sat Oct 10, 2015 3:54 am

Mainly High scores, and eventually upgrades and such.
B
4
Posts: 12
Reputation: 224

Post » Sat Oct 10, 2015 3:55 am

antares330 wrote:I normally just save using localStorage...

How much are you trying to save?
- Highscores
- Entire game state

I think there is a save/load feature... but would need to check C2 for the exact event/action...


High scores and eventually upgrades and such.
B
4
Posts: 12
Reputation: 224

Post » Sat Oct 10, 2015 3:58 am

If your not saving the entire game... use localStorage.

Here is a recent tutorial I saw...
https://www.scirra.com/tutorials/1461/h ... age-plugin

If you need more help, I might throw together a video for you!
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,068

Post » Sat Oct 10, 2015 4:56 am

So you would create a Save Function, within that would be what you are storing to local hi-score, level, gold etc. Then you could do a Every X seconds or when a checkpoint reached call function Save.
Image
B
46
S
17
G
2
Posts: 201
Reputation: 4,526


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 27 guests