How do I save the progress of a level in Level Selection?

Get help using Construct 2

Post » Sun Aug 09, 2015 4:50 am

Hello. I'm developing a game for Facebook.

I have a Level Selection screen with multiple levels that have different Animation sprites (Locked, No star, 1 star, 2 stars, 3 stars).
Here how a player unlocks the next level: Let's say someone plays Level 1. There is a minimum score on each level. If he meets the minimum score then Level 2 animation changes from "Locked" to "No Star" and it becomes available to the player.

However, if the player closes the game and comes back later, the unlocked levels will be locked again.

How can I save the game progress? (Not locally, though. Player can clear cache and lose everything. It must be saved on DB).
B
9
S
2
Posts: 30
Reputation: 651

Post » Mon Aug 10, 2015 7:41 pm

You kind of answered your own question. You have to use a database of some sort. There are lots of tutorials on how to do this: https://www.scirra.com/tutorials/346/on ... -php-mysql
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Tue Aug 11, 2015 4:28 am

gumshoe2029 wrote:You kind of answered your own question. You have to use a database of some sort. There are lots of tutorials on how to do this: https://www.scirra.com/tutorials/346/on ... -php-mysql

Thank you for your reply.

As far as the high score is concerned, Facebook probably takes care of it. However, I'm concerned about the levels mostly. Shouldn't the level progress be linked to Facebook's "DB"?

EDIT: Nevermind. Got most of stuff working. An example will be posted next week.
B
9
S
2
Posts: 30
Reputation: 651

Post » Wed Aug 12, 2015 8:53 pm

Excellent, thanks.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests