Autosave game

Get help using Construct 2

Post » Mon Nov 05, 2012 9:05 pm

Hi!
How create autosave?
No load and save button...automatic save position...
When restart game I continue with last position.

I have first (main menu) layout with Play button, and second layout is game...

Thanks!

Sry for English language...

Dasa2012-11-05 21:10:19
B
5
Posts: 12
Reputation: 499

Post » Mon Nov 05, 2012 10:13 pm

You didn't tell what's game you are making, i guess it's platform

Add a webstorage.

Create an invisible sprite like a helper could act like checkpoint, place checkpoint sprite on specified place should autosave.

Make an event collision between player and checkpoint sprite, add webstorage value to player position. Then add on start layout with condition webstorage exists, it could load the checkpoint on specified position.

Check this out and download .capx you need to modify it:

http://www.scirra.com/arcade/example/1460/save-load-engine-for-platform-games
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 14 guests