Sofa_King's Recent Forum Activity

  • You do not have permission to view this post

  • lol

    Your game has an advertisement which plays directly after the title screen has loaded. I like the way you did that. It is not distracting for the player and it is effective for you.

    :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I really like the way you placed that quick and short add right after you give a glimpse of the title screen. Is there any information or link you can share on how to do that? I thought it was really subtle.

  • You do not have permission to view this post

  • It seems a little strange to me that my only option is the load it as 'LastData'. There must be a way to call it up using the 'Tag' that I set when it was loaded in the AJAX.

    Update: I got it to work. I had to use the 'LastData' action, but it works.

  • I will do this and then report back. Thanks! :)

    Alas, I added the JSON object to my project and tried to 'JSON.Download', but it made my browser download the file to my desktop... lol. Cool but not what I was going for.

    Also, I went onto the online guide and it says the following:

    It seems a little strange to me that my only option is the load it as 'LastData'. There must be a way to call it up using the 'Tag' that I set when it was loaded in the AJAX.

  • The idea you mentioned in the first post is the reason why i'm running into problems. I know that I can 'Load JSON from AJAX.LastData' but I dont want to do this, because then I would need one array for each JSON that I am load (because if I didnt load it right after, the second JSON in the string of commands would replace the first as the new 'last data').

    And... is there a reason you're using the ajax request? Normally that's to contact an external website to get data but I don't see any url info in your request. Is that json file stored in the project? If so, you should be able to just Json.download | "Working_Word_List_Array.json"

    I could be wrong about that. Haven't worked with loading json directly from files either.

    Cool! I will give that a try. I was using AJAX because that's the only way i've seen to load JSONs from my project files in the past, but what you said seems way easier.

    I will do this and then report back. Thanks! :)

  • I'm still a newbie, but my first thought would be to put the variable 'AttackPattern' as a variable on the monster sprite itself, instead of as a global number, just to clean things up a little.

    That way you might be able to have more than one monster?

  • What am I doing wrong? I just can't seem to make this work. The 'set size' to (9, 36) action is working successfully, but in the debug i'm just seeing a zeroed out array of that size.

  • (JSON) AND linked to the Dictionary documentation which explains the expression for saving/loading a Dictionary as JSON.

    To Save Data:

    Condition: Whatever condition you want

    Action: Instant Games>Set Player Data>Dictionary.AsJSON

    To Load Data:

    Condition: Whatever condition you want

    Instant Games>Load Player Data

    Instant Games>On Loaded Player Data>Dictionary>Load From JSON string>InstantGames.PlayerData

    Hi twg and everyone else :D Old thread, but a new and related question:

    Can I substitute the data saved into a dictionary for data saved into an array, and then save that to the Instant Games network?

    Thanks,

  • Woah! I was able to download one! Thank you so much! This has come exactly at the right time!

Sofa_King's avatar

Sofa_King

Member since 12 Sep, 2018

Twitter
Sofa_King has 4 followers

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies