oosyrag's Forum Posts

  • "The Else event runs if the previous event did not run." As moon said, a subevent only runs if the parent event DID run, which is a direct contradiction.

    It would work however, if there was an additional subevent on the same level above it.

    The way it works and looks is unique to Construct's event sheet, so I would try not to get too hung up on what "correct" should look like using other programming languages as a standard (especially if you're teaching Construct).

    If I were to teach someone how to use the else event, it would be directly related to toggles as you have done, and I would explain it exactly like how it is explained in this article scirra.com/tutorials/292/guide-to-construct-2s-advanced-event-features.

  • Using a low resolution and scaling up to a high resolution/large display will result in lower quality visuals.

    Using a high resolution and scaling down will utilize more graphics memory (and overall download size), which may or may not be a problem depending on the scope and size of your project.

  • Does the built in sprite.asjson expression include the texture data?

  • Try request from url to get the file from the drive rather than the project file, which might be cached upon downloading/running the app.

    When I previously worked with dynamic files on the local system I used nw.js, and I know that worked, but I'm not certain if Ajax by itself can do it.

  • Localstorage should last forever, barring a significant update to the game that changes how saves are handled, reinstalling the browser (or changing browsers/computers), or manually clearing the browser cache. It is related to the "Cookies and other site data" option under the clear browsing data options in Chrome.

    For persistent storage, your best option is to use a cloud service or your own server to sync user data online in addition to using local storage.

    Alternatively, if your game is packaged as an app or executable, it should be significantly more difficult for localstorage to be unintentionally cleared.

  • You can:

    a. Place the entire layout in the layout editor.

    b. Create "pieces" of the terrain as you get to them by storing the level layout details in a data format and loading them in offscreen as you go.

  • How does your Construct program know when the file is updated?

    Right now, you are reading darkoutside.py only once, on start of layout.

    You'll need to AJAX request again whenever you want to update - either by every x seconds for a refresh rate, or ideally some sort of trigger.

  • I believe the official plugins were intentionally not made available to prevent copies with slight modifications that eventually lost support, broke with update, and cause confusion. I remember there was quite a bit of unrest regarding this decision when C3 beta first launched - you might be able to find the thread with a google search since it seems the forum search is broken. There were Scirra responses in that thread.

    Edit: Might be this construct.net/en/forum/construct-3/plugin-sdk-10/download-construct-3-built-in-131108

  • You do not have permission to view this post

  • Also here is a simple way to implement metaballs in Construct - scirra.com/tutorials/813/how-to-make-fluids. I imagine if you used a larger number of small metaballs that didn't "flow", you could get a decent deformable blobby sort of result.

    Edit: The effect used is built in C3 and called "AlphaClamp"

  • My first thought is metaballs ref:http://jamie-wong.com/2014/08/19/metaballs-and-marching-squares/

    Second thought is you might be able to draw with splines with R0j0's paster plugin, but I haven't used it so I don't actually know.

    Thirdly, You can definitely do curved lines with "handles" using the built in quarp and cubic expressions, but I have no idea how you'll get enclosed, filled shapes from there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use a global variable to retain data between layouts.

    Upon destroying the car on the layout where the car doesn't exist, set the global variable to 1.

    In layout 2 -

    On start of layout, if global variable=1, destroy car.

  • Compare two values

    textbox.text = str(float(text box.text)

  • Sounds like a bug, see if you can consistently get it to happen and make a report?

  • There isn't enough information to answer your question.

    What kind of object is it and what is it supposed to be doing (or what information are you looking for)?