How to make a object collide whit just a few sprites?

0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • It first seemed like the solution was to disable the collisions of the object, then add the event on collision whit another object to the sprite that was supposed to collide whit the object and then make the action collision enabled for the object and the sprite. Too bad the sprite still doesn't collide into the object and just fall through it. Making this work is a key to may other things working so i would want to know how to make this work.

  • The question is to vague to answer..

    When is the collision supposed to take place?

    When is the collision not supposed to take place?

    If you disable collisions of an object, how is it supposed to detect a collision?

  • The question is to vague to answer..

    When is the collision supposed to take place? "When a certain sprite collides whit the object. On touch rather said.

    When is the collision not supposed to take place? When any other sprite rather then that sprite collides whit the object.

    If you disable collisions of an object, how is it supposed to detect a collision?" It's supposed to be disabled to all sprites except one. How i do that is what i ask for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Disabling collisions on an object will disable collisions..

    You can't test for collisions if the object doesn't detect collisions..

    Are you sure you mean collisions at all or do you want to set the object to solid-behaviour or something..

    Otherwise a simple

    sprite on collision with object

    action

    would be enough, for no other sprites would be affected..

  • It's not very clear what you want... but, a few ideas:

    • You can group up your sprites of interest to collide in a family and then create your "sprite on collition with family" to do what you want to do. If your objects collide with an object that is not in your family, it will do no action and it will only collide.
    • You can group up your sprites of interest to collide in one family and sprites of interest not to collide in another family... then enable or disable collition to the families instead of individual sprites.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)