'Or' can't be used in this example

This forum is currently in read-only mode.
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • The condition "animation is finished" can't be used with the 'or' function in this example because it always gets put at the top of the list of conditions, so instead of having "is animation 1 finished or is animation 2 finished" I have to use separate events. Generally not an issue but it makes for neater code. Could 'or' be made to be able to be put anywhere in the list?

    And apologies for asking, but why are some conditions always at the top again? And if 'animation is playing' isn't a top event, then why is 'animation finished'?

  • Triggered conditions - such as On animation finished - are automatically put at the top of events to ensure a correct order of events and useage. Events cannot contain multiple triggers, which explains why you can't have an OR between two. I noticed it doesn't pop up a prompt though, which it should.

    A workaround would be to use an inverted 'Animation is playing', if possible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually if you make another event 'on animation 'walk' finished' and then drag that condition into the event that has 'on animation 'whatever' finished' you will get 2 triggers in the event. In the situation that more than 1 trigger appears in an event, each trigger is handled as though an or is between them.

    eg:

    on button 1 clicked

    on button 2 clicked

    message "woohoo"

    Will result in the message "woohoo" appearing if you click button 1 or button 2.

    However its kind of confusing because it reads like it should happen if they are clicked at the same time.

  • That's not intended though.. either the system should be changed to allow it or it should be 'fixed'.

    The best resolution would be to disallow multiple triggers except when OR is added, I think.

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