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
48
S
19
G
87
Posts: 2,317
Reputation: 51,518

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

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
273
Posts: 3,823
Reputation: 150,789

Post » Mon Aug 19, 2013 12:41 am

Ah overlapping object of course...thanks for the responses!
B
48
S
19
G
87
Posts: 2,317
Reputation: 51,518


Return to How do I....?

Who is online

Users browsing this forum: Sal1mus and 17 guests