Negate Events / Conditions

Get help using Construct 2

Post » Fri Feb 22, 2013 7:34 am

Good morning Gentlemen,

I tried Construct 2 yesterday the first time and I'm really stunned! Great engine, great price, great offer!
However, I'd love to know how I can negate event-conditions. E.g. I want to check if a sprite object <IsNot(OnColisionWithAnotherObject)> - How can I do this? Is there any way to negate conditions???

Regards,
Chris
B
6
S
1
Posts: 33
Reputation: 966

Post » Fri Feb 22, 2013 7:39 am

Right-click on the condition itself and choose Invert.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Fri Feb 22, 2013 7:59 am



Way too simple ;-) Thanks for your quick response!!!
Also, thanks for the RTFM-badge. Guess I earned that one!
B
6
S
1
Posts: 33
Reputation: 966

Post » Fri Feb 22, 2013 8:32 am

Pressing "I" also inverts the condition

see

https://www.scirra.com/manual/64/keyboard-shortcuts
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sun Jun 16, 2013 4:28 pm

Hi,

Is it possible to invert Mouse and Keyboard conditions?

Something like:
WHILE <NOT> Keyboard OnAnyKeyPressed...
or
WHILE <NOT> Mouse OnAnyClick...
B
4
S
1
Posts: 2
Reputation: 366

Post » Sun Jun 16, 2013 4:30 pm

I don't think so , you'll need to invert the "Is down" condition
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,481

Post » Tue May 26, 2015 9:19 pm

im trying to invert an oncollision event but it doesnt let me do it why???
B
4
Posts: 2
Reputation: 206

Post » Tue May 26, 2015 9:32 pm

"On" events are triggers, not conditions. They do work differently from regular conditions. You can't invert them.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests