Else

This forum is currently in read-only mode.
  • I couldn't find any documentation on this, does anyone know how to use it or what it does?

  • Else runs if the conditions of the event before it is false. Example:

    Event 1:

    If sprite.x is lower than 100

    • rotate sprite clockwise

    Event 2:

    Else

    • rotate sprite counterclockwise

    If sprite is not lower than 100, it'll rotate counterclockwise.

  • also, make sure it's the next event. it's not meant to be used as a subevent to the original or an extra condition.

  • It should be able to be used in subevents, but I think there may be a bug with this.

  • It works in subevents, but not as the first subevent, because it has to follow another event of the same nesting level.

    'Else' also cannot follow a trigger - there's a bug where if it does follow a trigger, it actually is acting as an else to the first non-trigger event before it in the event sheet

  • for clarification:

    good: notice how it connects the events

    <img src="http://files.getdropbox.com/u/1013446/goodelse.PNG">

    good for subevents, too

    <img src="http://files.getdropbox.com/u/1013446/goodsubelse.PNG">

    this is what I meant you can't do

    <img src="http://files.getdropbox.com/u/1013446/badelse.PNG">

    or this

    <img src="http://files.getdropbox.com/u/1013446/orelse.PNG">

  • Lucid's images should be wikified.

    I never got it properly until now.

  • How come I'm not getting a nice split with my else?

    <img src="http://dl.getdropbox.com/u/1024727/images/else.png">

    like how the else splits in this:

    <img src="http://files.getdropbox.com/u/1013446/goodelse.PNG">

  • it has to be a separate event, not a condition in the same event

  • Should I add Trigger once to else events for stuff like making some object visible?

  • Only if you want the else condition to only fire once while the condition above it is false. (it works like normal in an else event too)

  • Only if you want the else condition to only fire once while the condition above it is false. (it works like normal in an else event too)

    so it basically CAN become like always event right?

    I will probably make it habit to add trigger once, first for optimization, second to avoid possible problems if I ever want to say set it invisible again, third as a true stealth fan I don't like leaving mess after my work ]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • cheers lucid, I was wondering how to attach it!

  • bumped because its been [solved] and is needed. for a search

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)