how can inverse "on collision with"?

Get help using Construct 2

Post » Sun Mar 17, 2013 3:22 am

need to know how I can take action if X is not touching another object
probe using the condition "on collision with ..." but I just noticed that you can not invest

sorry for my English

spanish:
bueno.
me explayare un poco mas en espaol.
estoy haciendo un juego donde uso el plugin drag&drop del construct, el problema es que no puedo corregir un bug en el cual un jugador puede subirse sobre la plataforma y moverla (la idea es que el jugador la mueva por el mapa y luego la acomode y suba sobre ella para llegar a ciertos lugares)
pude arreglar esto haciendo que si el jugador esta sobre la plataforma el D&D se desactive.
el problema es que no puedo realizar la accin contraria para que se active cuando este no esta sobre la plataforma
B
5
Posts: 1
Reputation: 444

Post » Sun Mar 17, 2013 4:49 am

Make a variable called OnCollision. By default, set this variable's value to 0.

Whenever a collision occurs, set this variable to 1. Be sure to set this back to 0 at the end of the collision, probably like 0.1 seconds after the collision.

Now, just have your events that are supposed to happen when not colliding occur when OnCollision = 0.Excal2013-03-17 04:50:27
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Mar 17, 2013 4:51 am

Use the "is overlapping" condition and invert it (right click - invert).

You may have to add a "Trigger once when true" condition though.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: Megavolt, mnashwan and 21 guests