how can inverse "on collision with"?

0 favourites
  • 3 posts
  • 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 espa�ol.

    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 acci�n contraria para que se active cuando este no esta sobre la plataforma

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use the "is overlapping" condition and invert it (right click - invert).

    You may have to add a "Trigger once when true" condition though.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)