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
46
S
16
G
73
Posts: 2,084
Reputation: 43,677

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,116

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
21
G
230
Posts: 3,687
Reputation: 128,845

Post » Mon Aug 19, 2013 12:41 am

Ah overlapping object of course...thanks for the responses!
B
46
S
16
G
73
Posts: 2,084
Reputation: 43,677


Return to How do I....?

Who is online

Users browsing this forum: guannstar, odiusfly, tankhedgehog and 20 guests