Three games. One website, Real time data sharing.

Get help using Construct 2

Post » Wed May 08, 2013 11:50 pm

I have a project wich I've focused in certain way. I would like to know if it's a good perspective, a nice plan. Or it's a bad concept.

I want to create tree different games on a website. But this three games would share data among them. This data will be saved in the website thanks to the Webstorage asset in Construct 2.

The first game will share data in real time with the two others. And the changes will be visible in real time too.

Do you think this is possible?

B
16
S
4
G
1
Posts: 105
Reputation: 1,829

Post » Thu May 09, 2013 12:24 am

I reccomend using a db instead. It will persist as long as you want it to and much easier to manage. Also dont think webstorage of one game can read another i think it works like cookies
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Post » Thu May 09, 2013 12:56 am

WebStorage can only store things on the PC of the user, and it gets erased eventually.
I recently made a game for Ludum Dare 48h competition that uses communication between 2 windows using WebStorage, but it's just a temporary solution.

You probably want to get a database (maybe MySQL) and use AJAX and PHP to save the values. There might be a tutorial about this somewhere
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Mon Jun 10, 2013 7:20 am

Thanks a lot for your answers. Issue solved!
B
16
S
4
G
1
Posts: 105
Reputation: 1,829


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 27 guests