Or, Else

This forum is currently in read-only mode.
  • I'm having trouble understanding exactly how the OR and ELSE features work in the event sheet editor. I've played around with them, but I'm apparently missing something and there is no wiki page I could find for it.

    I currently have: <img src="http://pub.gamingw.net/39880/orelse.jpg">

    As a quick rundown what this does is test whether the CurrentX or CurrentY is in the first column, first row, last column, or last row. I want to check to see if any of those conditions are met, and if so then perform [A] ELSE .

    Currently, however, it seems to just ignore that completely and only triggers the ELSE statement.

  • Else doesn't work 100% correctly yet (at least I don't think so, haven't tested it in the latest build), so I would avoid using it. Also, I wouldn't use 3 ORs in a single condition, there could be problems with it.

    Instead of using those ORs, just seperate each condition into there respective sub-event, and copy the action into each one. I know OR adds that ounce of neatness to the code, but I think there could be something wrong with using it like that, especially with the else condition at the end. Just program your own else condition with a variable as a workaround for now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Else doesn't work 100% correctly yet (at least I don't think so, haven't tested it in the latest build), so I would avoid using it. Also, I wouldn't use 3 ORs in a single condition, there could be problems with it.

    Instead of using those ORs, just seperate each condition into there respective sub-event, and copy the action into each one. I know OR adds that ounce of neatness to the code, but I think there could be something wrong with using it like that, especially with the else condition at the end. Just program your own else condition with a variable as a workaround for now.

    But... but... my neatness...

    Edit: Hmm, I'm not sure what I did now.. but that doesn't seem to work either. I get the same result. Here is the .cap if anyone wants to look at it.

    http://pub.gamingw.net/39880/ProcGen.zip

  • interesting thread. this might need to be investigated.

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