LoganFMackenzie's Forum Posts

  • 3 posts
  • Great ideas guys! Many thanks!

    Gonna experiment with them and see what I can do

    Thanks for your time!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, if I could save a JSON file with the UserID as its name (e.g. Logan.JSON) and load test if it exists and then load it or create it depending on the result, that would be easy.

  • What I have:

    A text box where the player will input its ID.

    What I need:

    A way to store that player score based on its ID.

    e.g. >> ID.Text = Logan77 | Score = 100

    WebStorage.LocalValue(ID.Text+"_Score")

    will turn into WebStorage.LocalValue("Logan77_Score")

    then when needed, store Logan's current score to his created WebStorage key.

    Maybe a better way to ask it would be: Is it possible to create a variable name based on another variable value? Or even: How can I store data per UserID?

    I've experience with languages like C#, JS/jQuery, LUA, Python, F#, etc, so I think that something like this can be done with JSON, but how I started with Construct 2 today, I don't have a clue about what to do here

  • 3 posts