WackyToaster's Forum Posts

  • You kind of can.

    construct.net/en/make-games/manuals/construct-3/system-reference/system-actions

    Although I'm not sure how well it works. Loading a new layout is generally near instant. I'd argue if you absolutely need an instant change, then maybe splitting it up into two layouts is not the right approach. Maybe have two layers instead that you set visible/invisible instead.

  • In this case you don't need an else. If you click the button the first time, the condition (left side) will be true, so the actions (right side) will be executed. The second time you click the button, the conditions will be false, so the actions will not be executed.

    A different story would be for example if you want to play a sound that is either "success" or "error". In that case you want a specific set of actions to play depending on the conditions. So you'd do

    if not cow in array -> add cow to array, play success sound

    else -> play error sound

  • Yeah that pretty much is correct. When the value is not in the array, IndexOf(value) will return -1

  • It sounds like it was never meant to allow for multiple flowchart controllers in the first place. Could be an oversight, or it's just a bug. Since the big flowchart thread is unstickied at this point I'd just post a bug report and see what happens. Ideally I'd prefer that it's possible to have multiple flowchart controllers.

  • There's also the specific "contains value" condition

    Contains value

    earches the entire array to check if any of the elements contains the given value. For example, you can use this to test if the string "sword" is stored anywhere in the array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mind you this should only set the sprite mirrored, but not the movement. You also need to mirror the movement.

  • There's a bunch of plugins that I don't have so I can't open it. But one of these is Skymens Limit FPS plugin. Is it possible you limited the fps on accident or something? Switching the layouts will generally have a slight delay, since it has to load the new resources into memory. Usually a PC will do this faster than a phone I'd assume, so maybe it's just that?

  • For things like this it's usually better to contact support directly.

    supportspd@construct.net

  • > Here's one way of doing it.

    >

    > github.com/Wackytoaster/c3examples/raw/main/coyote.c3p

    I can't open it because I have a new version :(

    A new version? Just open it with editor.construct.net/beta

  • Here's one way of doing it.

    github.com/Wackytoaster/c3examples/raw/main/coyote.c3p

  • That probably needs a little extra to make the effect work the way you want it. You can use the variant where the stars are drawn on top of the player, and mask out the stars that shouldn't be visible.

    github.com/Wackytoaster/c3examples/raw/main/stars.c3p

  • You could use a combination of a timer and randomly chosen opacities maybe?

    Instead of setting the opacity instantly you could also start a tween there of course.

    You can also do it without a timer and just tween to a randomly chosen opacity at a randomly chosen duration, and on tween finished do that again.

  • Because there's a group that I'd like to disable whenever the layout changes or restarts (and also a variable inside that group that I'd like to reset). The simplest solution would be to have a trigger inside that group that does this whenever the layout changes/gets restarted.

  • So I just wanted to ask if this is an oversight or intentional? Possibly due to backwards compatibility?

    You could argue it doesn't make sense that it would trigger on layout end since the layout kind of doesn't end, but at the same time it does trigger on start of layout.

    Ideally it would trigger it, but if that's not possible for the mentioned reasons, I'd suggest a "on layout restart" of sorts? Although it's not clear if this triggers on start of layout or before end of layout? So I'm not sure if that's the best approach.

  • There's also

    getFirstPickedInstance()
    

    So you don't have to pick via UID. In a foreach the firstpicked should be the instance the loop is currently going over.