Touch individual object that overlap

  • Hello

    I need help

    In Editor mode, i can touch individual object that overlap but when running, with one touch all objects that overlap are touched.

    How to make only individual object that i touch are touched?

    I'm making that the object i touch is destroyed. Currently when i touch one overlaping object, all of them are destroyed :(

    <img src="http://i.imgur.com/lDd1QDZ.png" border="0" />

    what i want is, when i touch the top-most object, the object under it should not get destroyed.

    Thanks for any replies :D

  • +touch | on object touched

    +object| pick top most instance

    destroy object

    the condition is near the bottom.. under Z order

  • thanks, i have done that and it works but only for multiple copies of one object.

    so using the picture on 1st post, it only works if i stack multiple green bars.

    I can destroy the green bars one by one. Unfortunately the blue circle under green bars also got destroyed in the same time.

  • ah right,

    in that case, you can put all the touch-destroyable objects in a family and then just redo the events for the family so its just..

    touch|on family touched

    family|pick top most instance

    destroy family

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • wow keepee it WORKS :D

    thanks a lot

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