How can I save/load a variable across multiple games?

Get help using Construct 2

Post » Sun May 15, 2016 12:30 am

I'm building a series of small games where players explore a map and find physical tags leading to different ones. Here's a more detailed explanation, if you're wondering.

I want to push players to 'final game' only after they've played through all the others. I need a simple variable which increases incrementally each time players complete a game which coul be loaded at the end of each. If it's reached a certain value it would trigger a different set of events based on that value. This is all mobile-based, but my understanding is Local Storage saves different keys for each game and I couldn't use it to push data between them for this case.

This seems simple enough it could be accomplished multiple ways, but I'm having difficulty finding any actual ones. Do I need to learn Javascript or get help leveraging it somehow?
B
10
S
5
Posts: 28
Reputation: 1,508

Post » Sun May 15, 2016 1:35 am

Hi Resslx,

Do your games run in an app container or as a mobile website?
B
22
S
7
G
4
Posts: 154
Reputation: 3,699

Post » Mon May 16, 2016 4:08 pm

You need to have a server system that stores and manages the variables for all of your games. Like something in PHP/Python/Java Servlets.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"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
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Post » Sat May 21, 2016 10:22 pm

5Type wrote:Hi Resslx,

Do your games run in an app container or as a mobile website?


This forced me to look back at the site I linked. I loaded my games with key functions and tested them. It works! My games are running as websites though, which was the important distinction I did not catch. Thanks for getting me to look things over again.
B
10
S
5
Posts: 28
Reputation: 1,508


Return to How do I....?

Who is online

Users browsing this forum: Malhog and 19 guests