Action when NOT on collision

Get help using Construct 2

Post » Sun Aug 18, 2013 11:56 pm

Hello!

You can't invert 'OnCollisionWithObject' so is there an easy way to say 'WhenNotOnCollisionWith' without using global variables? It's gonna become tricky with global variables : P

Thanks
B
47
S
17
G
81
Posts: 2,225
Reputation: 48,097

Post » Mon Aug 19, 2013 12:21 am

Collision events are triggers and can't be inverted. Instead, you want to use "Is overlapping another object" and invert that.linkman20042013-08-19 00:21:25
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Mon Aug 19, 2013 12:22 am

OnCollision is a trigger, not an event. It is ONLY true and ONLY run when the collision occurs. It is not processed in the usual manner, per tick.
ImageImageImage
B
71
S
22
G
248
Posts: 3,759
Reputation: 138,069

Post » Mon Aug 19, 2013 12:41 am

Ah overlapping object of course...thanks for the responses!
B
47
S
17
G
81
Posts: 2,225
Reputation: 48,097


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests