dop2000's Forum Posts

  • Most likely you used "On button pressed" events instead of "Is button down". "On pressed" is a trigger and it only happens once.

    There are lots of official templates in C3 with gamepad support, you can check how they are made.

  • Have you tried "Array Load from JSON" action with this string received from the server?

    If it doesn't work, you should use urlencode() and urldecode() expressions. Urlencode the data before sending, and urldecode after you receive it.

  • If you can reproduce this bug in a small demo project, you need to report it:

    github.com/Scirra/Construct-3-bugs/issues

  • If you want to save it to a variable simply do "Set var to SaveStateJSON"

  • You don't need Local Storage.

    On Save Complete: Browser Invoke Download of a string SaveStateJSON

  • So you're talking about the System Save/Load system?

    After performing "System Save" you can access save state JSON using expression SaveStateJSON, inside "On Save Complete" event.

    Then you can save it in a web game using "Browser - Invoke download" action, or in NWJS game using Write File action.

  • I already deleted the project, it was over 500MB! If you remove the event block from the xml file (see the screenshot above), you should be able to open the project in C3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are asking how to overwrite JSON file in the project in runtime - this is not possible.

    You need to save changed data to Local Storage.

    On start of the game check if the data in Local Storage exists. If it does - load from Local Storage. If it doesn't exist - load from JSON file.

  • You can try fixing it yourself - rename the project to ZIP and extract all files. Edit (Player events).xml using Notepad++ or a similar tool.

    Scroll to line 111751 and you will see that the xml formatting is broken there.

    I tried removing the entire event block. The project loads, but then Construct 2 editor crashes as soon as I try to click anything.

    I was actually able to open the project (after those edits) in Construct 3. I strongly suggest you switch to Construct 3 - it's much more advanced and stable than C2, and you will be able to receive support if anything like this happens to your project again.

    And of course, with the project this big you need to set up automatic back-ups!

  • I agree that your suggestion is useful, but I don't think it will be implemented any time soon.

    Not having to spend wasted time having to load and manually set each font, which at this point is numbering 30+, in editor, hard setting properties for each one,

    But you'll still have to spend as much time (if not more) adding images and settings of all fonts into the array.

    then in code, spawning potentially 30+ text boxes for each separate element of text

    My idea was that you continue developing your game with just one default spritefont object (English). And you can add 30+ spritefont objects for other languages to a separate repository layout. In runtime, if the selected language is not English, you replace the default spritefont, spawning another spritefont in its place, and copying text/size/color and all other properties to it. You will only need one "EnglishSpritefont On Created" event.

  • It seems brutally inefficient to have to add extra SpriteFonts for every language/alphabet

    Even with the modified plugin, you will still have to add and manage images, character sets and spacing data for each language. In my opinion it's not much different from adding multiple SpriteFont objects to your project.

    You can create a simple system which will automatically swap English spritefont for a spritefont in another language in runtime.

  • You will need to change not just the image and character set, but also spacing data, and possibly some other parameters like line height.

    Having multiple SpriteFont objects seems like an easier solution for me. You can add them to a family and create the appropriate object for current language by name.

  • If you don't need to send the url, have you tried setting it to an empty string "" ?

  • I'd like to try making a duplicate Spritefont plugin

    Scirra wanted to prevent people making duplicates of the official plugins and made them difficult to find in C3.

    What functionality are you missing in Spritefont that you want to mod it?

  • Your second event "Touch Is not touching Roll_Double" is triggered even when you hold the key on keyboard, and it resets the volume. You need to add another condition to it - "Key RAC_ROLL_DOUBLE is not down"