Save game on level selection screen

Get help using Construct 2

Post » Sat Nov 03, 2012 1:00 pm

Im building an android game and wanted to know if theres a way

for when the player closes the game they resume back to the level selection screen with the unlocked levels.

(after each level is complete a new level is unlocked in the level selection screen)


not sure if im explaining it right
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Sat Nov 03, 2012 3:08 pm

http://www.scirra.com/tutorials/266/webstorage-how-to-save-ingame-information

I hope this could help
B
11
S
1
Posts: 46
Reputation: 1,828

Post » Sun Nov 11, 2012 2:22 pm

what if they clear there cookies? wont the save be deleted ?
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Sun Nov 11, 2012 2:44 pm

That's a risk you need to take , buddy ...
You can make an database , but that's some hard stuff
The best way is to save the informations in local data ... for now atleast !

Cheers !

Edit : I can make you an example .capx if you want ... Just call me with
@Whiteclaws !Whiteclaws2012-11-11 14:45:11
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sun Nov 11, 2012 7:00 pm

sadly yea =/ but i love construct real simple and easy to build games for apps and thank you i managed to figure out how to save =p
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Wed Nov 14, 2012 8:57 pm

I'm gonna have to write this too in very near future.
If I am able to find a solution.. I'll add here... if you do .. don't forget to share :)


There are probably 2 kind of saves I need.
1. When player dies in a level and has to "Retry"... I'd prefer he plays from a certain checkpoint of the game.. IMHO cookies is best way here
2. When player quits the game and comes back .. he needs to see all his completed levels as DONE as well as be able to play the uncompleted stage from the checkpoint.

I'm sure saving some xml based info in a flat file would be easier than db (although, this is only for "installed" games) .. but I'm not yet sure how to access 'em via Scirra.

Need to think.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Wed Nov 14, 2012 9:36 pm

i did manage to but sadly it requires alot of layouts and event sheets and im having trouble with cocoonjs im not sure if its cause of all the layouts and eventsheets or something else
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Mon Dec 17, 2012 11:34 am

It would be possible to share how you've done to save the progress?
The trouble with cooconjs .... already tried PhoneGap + Eclipse? I did test using PhoneGap + Eclipse was better than PhoneGap Build.
There are several games made ??in Construct2 published in GooglePlay, there is no one else who can share a tutorial on how to save progress?
B
3
Posts: 2
Reputation: 429


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests