b781rev's Forum Posts

  • I know, but how do you retrieve it from constructor 2 itself and use the variables in the game?

  • Then how would I go about doing a saved data feature without using the sessions or local storage?

  • Yes I did, but it doesn't explain exactly how to retrieve variables from a php page and use them in your game. It explains how to call a page and load that page. I can save game information into my database with that method, but I want to pull data from my database by the users being logged in, and if data for that game has been saved it can be loaded into the game for that user from the data pulled from the database in which I put into variables. Does that make any sense at all. Just got off work and a bit tired. Maybe I'm missing something, I don't know.

    For example I have:

    $var1="value";

    in my php page.

    I want to get the value of $var1 into my game using the AJAX method.

    I'm guessing I might just be missing something and just can't see clearly right now so any help would be greatly appreciated. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'm wondering how I can pull variables I load from a mysql database in a php page to my game? I can send the ajax request to save data but do not know how how to retrieve that data to load certain things in my project. Any help would be greatly appreciated. Thanks.

  • Hi,

    I have a question about the ajax. I followed the tutorial, but is there any way to display variables from a php page through the Construct game? I've been playing around with it, but cannot figure it out. Thanks in advance.