"Not" Condition ?

Get help using Construct 2

Post » Sat Mar 18, 2017 5:45 am

so there is a "on collision with another object " event. but how can i make a condition that checking for the object not colliding with other ?
B
8
S
3
Posts: 46
Reputation: 708

Post » Sat Mar 18, 2017 5:54 am

oh yea.. also "else" condition wont work
B
8
S
3
Posts: 46
Reputation: 708

Post » Sat Mar 18, 2017 7:27 am

Instead of "on collision" use the "is overlapping another object" condition, right click on the condition and select invert. Invert works like a "NOT" statement IIRC.

Basically that will trigger only if the instance is not colliding with whatever sprite you want it to not collide with.
B
15
S
6
Posts: 85
Reputation: 1,195

Post » Sat Mar 18, 2017 10:01 am

1. Use overlaping collision to check the collision permanently
2. Right click on your condition and use INVERT

Image
B
6
S
1
Posts: 50
Reputation: 502

Post » Sat Mar 18, 2017 10:49 am

AnotherUser wrote:oh yea.. also "else" condition wont work


'Else' does work, but without seeing your code or an example .capx, how are we to know what you mean?

Please read the Tips for posting so that we can offer better assistance.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Sat Mar 18, 2017 10:58 am

zenox98 wrote:
AnotherUser wrote:oh yea.. also "else" condition wont work


'Else' does work, but without seeing your code or an example .capx, how are we to know what you mean?

Please read the Tips for posting so that we can offer better assistance.

Adding "Else" condition next to a trigger one will say "Else is invalid here".

The solution which @Pulstar provided and @gaelsev showed should work.
B
32
S
7
G
4
Posts: 397
Reputation: 4,589

Post » Sun Mar 19, 2017 12:26 pm

gaelsev wrote:1. Use overlaping collision to check the collision permanently
2. Right click on your condition and use INVERT

Image

thanks alot !
B
8
S
3
Posts: 46
Reputation: 708


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MaxxMunnn and 4 guests