Suggestion: Multi-Condition Events

0 favourites
  • 13 posts
From the Asset Store
Buildings - Isometric view - PNG transparent - multi styles, multi fonctions buildings
  • Would it be possible to have events like this:

    <img src="http://dl.dropbox.com/u/1378330/multiconditionEvents.png" border="0" />

    Where there are multiple condition 'groups' in an event? A bit like the 'OR' condition in CC, but I think actually having a visual divider would be a lot more intuitive visually. This is pretty much the only thing that's quite messy to do in the current event-sheet system.

  • As far as I know this is completely legal. I also have a lots of multi conditions triggering some of my things ...

    But that is no OR, that's more like an AND .. the OR would be a seperatoin of D is down and A is down =)

    Cheers

  • Hence the little 2 pixels line between the conditions, in opposition with direct touching events as it is now.

    For having discussed with Ashley on IRC about "else" and "or" events, it appears they are tricky to implement, and that's why they've been postponed for now.

    So eventually they will come, and indeed for now a "or" condition is pretty tricky to implement with an event workaround.

    As far as I'm concerned, I've tried as much as possible to avoid having to have to use a "or" event with the organising of the code and the logic used.

    Apparently, such a 'visual' division isn't as intuitive as you thought cow_trix, judging by Spades' answer ^^

    I also feel a "or" condition as it is in CC would work nicer.

    EDIT: Coming to re-read the whole, I understand the shade you mean by "A bit like".

    In fact, instead of having event 1 "Key D is down, do this" and event 2 "Key A is down, do this same thing" they would act as "parralel" events, sharing the same actions.

    In this case then yes, your suggestion works and would be a nice addition indeed.

    Especialy if it is counted as a single event.

  • It's actually surprising how unnecessary the 'or' condition is. You can get around it really efficiently using sub-events.

  • DIT: Coming to re-read the whole, I understand the shade you mean by "A bit like".

    In fact, instead of having event 1 "Key D is down, do this" and event 2 "Key A is down, do this same thing" they would act as "parralel" events, sharing the same actions.

    In this case then yes, your suggestion works and would be a nice addition indeed.

    Especialy if it is counted as a single event.

    Signed

  • I think the easiest way to implement this is a special kind of "OR block" that runs if any of the conditions in the block are true. This is much simpler to implement and is straightforward to use, and prevents you making weird events like "A OR OR B OR OR OR".

    Still, it's fairly easy to workaround, and functions will make it even easier.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yay functions!

  • I realized that most of my necessity for families in my entry for the competition could also be solved with this proposal.

    If you think about it, this...

    <img src="http://dl.dropbox.com/u/1378330/multiconditionEvents.png" border="0" />

    ...is the equivalent of this...

    <img src="http://dl.dropbox.com/u/7871870/construct/multi-conditions-01.png" border="0" />

    ...but more readable, and quicker, and easier to manage.

    When you have lots of these duplicate events (like in my entry), this can certainly make a big difference when managing them.

  • I think the easiest way to implement this is a special kind of "OR block" that runs if any of the conditions in the block are true.

    What about calling it ANY?

  • > I think the easiest way to implement this is a special kind of "OR block" that runs if any of the conditions in the block are true.

    What about calling it ANY?

    Good idea!

    It's hard to implement "OR" condition in plugin at current framework -- it's an "AND block".

  • Hi,

    any news about this?

  • It's on our todo list.

  • YAY !! more on the to-do list !!

    :)

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