Choose only top sprite when overlapping another sprite

0 favourites
  • 4 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • I am a bit lost so it's time to ask another question...

    I have a few sprites on my screen which i want to destroy if I click on them (I have managed that)

    I only found 1 post that seemed similar to what I need, they talk about using system/pick Nth Instance which I tried but it did not work.

    Thanks in advance for any help

  • What exactly did you do with pick Nth instance? It should work.

    Object On Clicked

    Pick Nth Instance - 0

    Should leave you with only one instance picked, which you can then destroy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have it working now, my problem was I had the sprites disappear instead of destroyed.

    Thanks for your post

  • I am still doing something wrong <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    I have give a quick example in the image below (the sprites are set to move upwards in the behaviours). so if the red sprite overlaps the yellow sprite and I click the red sprite it destroys only the red sprite (SO THAT WORKS) but then if I click the yellow sprite, it does not destroy. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    I will have about 10 sprites in the project that I will need to check if they are overlapping another sprite only the top one is chosen.

    Sorry I can not post urls yet, so you will have to copy and paste the below image link

    ibb.co/eNykRQ

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