SoupOrWorm's Recent Forum Activity

  • Did you check if the file is being created?

    I hope the events on your first screenshot (Main Menu) are sub-events under some trigger. Because otherwise they will be running on every tick, constantly reading and overwriting the file, which may explain why it's empty.

    Can you make a bigger screenshot showing all these events at once? It's impossible to tell what can be wrong by those fragments.

    Do you mean the full event sheets? I'm a bit confused with what you are asking.

  • When stuck, check the manual:

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/nw-js

    You can't read files like that. Use NWJS.ReadFile expression:

    Dictionary load from JSON string NWJS.ReadFile(path_to_the_file)

    But first you probably need to check if the file exists using NWJS Path Exists condition.

    And definitely don't do this on every tick!

    Thanks for the response. Using your feedback I've changed the code to this:

    (Main Menu)

    (Options)

    (Game)

    However, it still isnt working as I hoped. Looking at Debug Layout shows that the dictionary adds/changes the keys sucessfully, but the json file itself looks like this and isnt working to save/load the options:

    Also, I am uploading to Steam if that changes anything. The dictionary doesnt even seem to work at all in steam, and the json file still doesnt update.

  • Ready to hear the DUMB thing I did? I had the choose X option set to 1100 right?

    My layout is 1024 wide.

    I thought I had it set to 1280. DOH!

    Couple that with a "destroy outside layout" behavior, and yeah, my right-side baddies were nowhere to be found.

    All fixed now, and working exactly as intended.

    Wops. Alls well that ends well I guess, good luck on the project!

  • I am using trying to use .json files to save and load the settings for my game but it simply doesnt seem to work. I am saving it to the user folder. Here is my code for saving the settings:

    And here is the code for loading it:

    Tagged:

  • > I beleive what you are looking for is the random function. In your case, random(100-1100).

    >

    > Choose only puts it at one of the set values, not a range.

    No, I need it to be at 100 or at 1100 specifically. Nowhere in between.

    My bad, I misread it.

    The image looks fine. Are you sure that there are no other factors that can affect this (e.x. an action that makes the sprite invisable being triggered at the wrong times)? You can try using Debug Layout to check if it is invisable when it spawns in or if it just isnt spawning.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to store Dictionary data, and was using Dictionary to download the json file.

  • I beleive what you are looking for is the random function. In your case, random(100-1100).

    Choose only puts it at one of the set values, not a range.

  • Thanks for the response! However, I was wondering if I could choose where to download it for every player, not just me.

    I am exporting NW.js for Steam if that helps.

  • I am using json files with the dictionary to store the setting for my game, but ive noticed that they only download to the Downloads folder, and i wish i could choose what folder they should be downloaded to. Do anyone know how to do so? Thanks.

  • Thanks for the response!

    I don't think that would work because 0 just means the default audio level, but it did make me think and I just figured out that you can just say Set Master Volume db to -Infinity and it works!

  • So I need to have a mute option for my game, and Set Silent mutes the game just fine but creates a problem of it's own; some conditions in the game's event sheets are tied to whether a sound tag is playing, and Set Silent stops the sounds from playing altogether, and thus breaks them.

    I could manually replace all of those with other specific conditions, but I was wondering if there was an easier solution to maintain the gameplay that relies on those tag conditions even when the game is muted.

  • This is pretty self explanatory. I wonder how to make an isometric 3D camera like in city builders. This is all I've tried to far:

SoupOrWorm's avatar

SoupOrWorm

Member since 7 May, 2021

None one is following SoupOrWorm yet!

Trophy Case

  • 4-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies