Pick by comparision + Else -> bug or not?

From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • Hello to all,

    I noticed that "Else" can work afterwards "Pick by comparision" condition, if no instance is picked.

    If "Pick instances" works as a loop then else shouldn't it be able to go after, or I am wrong?

  • I guess that in that case Else works as "if no matching instance picked", I could be wrong but that's the most logical outcome for me

  • Hi Tomycase, thanks.

    That's what I thought, but I wanted to make sure it was the right way to go.

    Within the System Condition docs, for Else it says:

    Run if the previous event did not run. Note that this condition does not pick any objects: if it follows an event that picks objects, in the Else event all instances revert to picked again. Else can only follow normal (non-triggered) events. It can also follow another Else event with other conditions to make an "if - else if - else" chain.

    What does this mean: "if it follows an event that picks objects, in the Else event all instances revert to picked again"?

  • That means that if you want to pick a different specific object if the first condition didn't met, you need to make a Else + new pick condition block to do so, from what I understand

  • It looks like you said Tomycase, and this works nicely.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The reason else works after pick events where nothing is picked is because if there are no objects that meet the pick conditions, the pick event does not actually run at all, thus triggering the else event.

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