save data local - plugin

0 favourites
  • 6 posts
From the Asset Store
DATA+ (Addon Pack)
$18 USD
20% off
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • Hi all,

    If this is the wrong forum to post > sorry. I really looked where to post this, but didn't see a good place for it.

    Question is: Is there a plugin or another manner to store variables locally on the server, where the game is running.

    I need it to make a program that anyone can access and use. If they change something, i want that change to be permanent, so if somebody else is starting the program (from another desktop), he/she will see that change.

    Is something like this possible with C2?

    Thanks in advance!

    MAD

  • you don't need a plugin for this, just use Ajax and a backend like perl, php or whatever, that is capable to write data on the server.

  • you don't need a plugin for this, just use Ajax and a backend like perl, php or whatever, that is capable to write data on the server.

    Hi, thanks for your reply. But could you be more specific? What should i do with ajax, perl, php or whatever?

    MAD (Mark aka Dark)

  • I would say this is better located at the "How to" section of the board, but I do hope this helps:

    as JavaScript is not able to write to a server, you need to set up a script (easiest to learn is PHP in my opinion). With PHP you can set up a script that will either write to a file or a database. From your game, you need to set up the Ajax plugin to call you PHP script with the parameters you need.

    It would be too much to explain how to set up the script. But how to use the Ajax Plugin is well explained in the manual.

    scirra.com/manual/107/ajax

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can check in the how do I FAQ section "AJAX", there are examples listed showing how to make your C2 application communicate with server-side PHP.

    Topic moved to the "how do I" forums.

  • Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)