How do I check if something is not overlapping another thing

Get help using Construct 2

Post » Thu Jun 23, 2016 1:24 am

I wanted to change a global variable when an object is over lapping another object, and then change the global variable back to it's original state once the object is no longer overlapping the other object. How do I achieve this, if possible?
B
35
S
12
G
5
Posts: 5
Reputation: 4,689

Post » Thu Jun 23, 2016 2:18 am

Hi there,

Try to copy/paste your event, right click on the "is overlapping" condition and click on "invert". This will change your condition to "is not overlapping". Change the action at the end of your event and it should do the trick. "invert" works for almost all event conditions.

Hope this helps!
B
16
S
9
G
5
Posts: 74
Reputation: 4,120

Post » Thu Jun 23, 2016 2:38 am

SimoneT wrote:Hi there,

Try to copy/paste your event, right click on the "is overlapping" condition and click on "invert". This will change your condition to "is not overlapping". Change the action at the end of your event and it should do the trick. "invert" works for almost all event conditions.

Hope this helps!


Thank you! This helped a lot, will help in the future as well.
B
35
S
12
G
5
Posts: 5
Reputation: 4,689


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests