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
Posts: 33
Reputation: 816

Post » Fri Feb 22, 2013 7:39 am

Right-click on the condition itself and choose Invert.
ImageImageImage
B
67
S
19
G
124
Posts: 3,215
Reputation: 74,417

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
Posts: 33
Reputation: 816

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
59
S
30
G
34
Posts: 1,194
Reputation: 23,777

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
Posts: 2
Reputation: 216

Post » Sun Jun 16, 2013 4:30 pm

I don't think so , you'll need to invert the "Is down" condition
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

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
67
S
19
G
124
Posts: 3,215
Reputation: 74,417


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests