How do I compare x and collisions

0 favourites
  • 7 posts
  • hi,

    i want to enable collisions of ennemy only if hes near my player

    i use compare X of ennemy when it is >= 100 (100 is position of my player) then enable collisions

    but i think that it will enable it every tick ... so i need to enable it just one time

    thanks

  • Add a System - Trigger once while true condition.

  • triger once + Y (of ennemy) >= 100 then enable collisions of ennemy? like that ?

  • hi,

    i want to enable collisions of ennemy only if hes near my player

    i use compare X of ennemy when it is >= 100 (100 is position of my player) then enable collisions

    but i think that it will enable it every tick ... so i need to enable it just one time

    thanks

    Use, If Collisions disabled and Y >= 100 then enable collisions. This will prevent event from trigger every tick.

  • > hi,

    > i want to enable collisions of ennemy only if hes near my player

    > i use compare X of ennemy when it is >= 100 (100 is position of my player) then enable collisions

    > but i think that it will enable it every tick ... so i need to enable it just one time

    > thanks

    >

    Use, If Collisions disabled and Y >= 100 then enable collisions. This will prevent event from trigger every tick.

    you mean by collisions desactivated = collisions enabled and invert this ??? yes ?

    any way thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you mean by collisions desactivated = collisions enabled and invert this ??? yes ?

    any way thanks

    Yes, this will prevent every tick.

  • thanks sisphus

    thats work perfect ... and the same is trigger once

    thanks for spacedoubt too

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