Tube's Forum Posts

  • I'm hardly an expert at Construct, but it seems like the easiest workarounds for OR and ELSE would be:

    For OR:

    + System: Always (every tick)

    -> System: Set global variable 'Temp' to 0

    + System: Condition1 Equal to Condition2

    -> System: Set global variable 'Temp' to 1

    + System: Condition1 Equal to Condition3

    -> System: Set global variable 'Temp' to 1

    + System: Is global variable 'Temp' Equal to 1

    -> (Do whatever)

    For ELSE:

    + System: Condition1 Equal to Condition2

    -> (Do whatever)

    + System: [negated] Condition1 Equal to Condition2

    -> (Do whatever)

    Not pretty, but workable. Note that this pseudo-ELSE doesn't work especially well if you change whatever you're testing against before you check against the negated bit. If that's the case, just set up a temporary variable and change it afterward.

  • Ah, simple enough. I guess I figured it was just alphabetical like Visual Studio. Stupid assumption, though.

    Seems to work. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is probably an extremely basic question, but I haven't been able to find any information on it in the wiki.

    How can the order of layouts be changed? Which is to say, a game will, when run, start with whatever layout I created first (which in my case is just a level I made to mess around with, and decided to keep). There doesn't appear to be any application property that would affect this, nor is there anything readily obvious in the layouts themselves.

    I'd like to add a menu before my levels (I have 3 levels at present), and I'd like this to be its own layout. Later on, I might want to add a splash screen or title screen before the menu, or I might want to change the order of my levels or insert a level or intermission between two of the others.

    I'm hoping there's an easy way to do all this. It seems simple enough to shove a one-time event in to change layouts to a particular numbered layout on startup, but that means the program is loading a bunch of assets that it doesn't necessarily need up front, which could be a problem later - I don't want to do that if it can be avoided. Renaming layouts doesn't seem to help, either, because they seem to retain their index number based on when they were created.

    Surely I'm just overlooking something, though. Thanks