How do I execute an event and ignore the other

0 favourites
  • 4 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • Hi construct people

    am new in construct and i wanna ask

    How do I execute an event and ignore the other when the 2 conditions are met in the same time

    To explain more :

    I got a condition says :

    Bird is overlapping Sprite1 >>>>> set collisions Enabled

    and an other condition says :

    Bird is overlapping Toppipe >>>> Bird Destroy

    Now ,What I wanna do is

    When the Bird is overlapping Sprite1 and Toppipe at the same time , ignore event 1 (set collisions Enabled ) and execute event 2 (Bird Destroy )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can add another condition to the first event like this :

    Bird is overlapping Sprite1 & Bird is NOT overlapping Toppipe >>>>> set collisions Enabled

    if you don't know how to make a NOT condition it's simple just add the second condition ( Bird is overlapping Toppipe) mouse left click on it and from the popup menu select ( invert ) it will become Bird is (NOT overlapping Toppipe).

    here is an explanation why to do this : because you want to make collision enabled only when the bird is overlaping sprite 1 if you add ( not overlapping toppipe ) the event won't work when the bird is overlapping both objects. because the second condition is false, and for second event you don't need to change anything because when the bird overlape toppipe it's already destroyed no need for another collision test.

  • Thank you very much warville

    That's really helpful and simple

    Thanks again

  • you are welcome

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