How do I destroy only sprite on top? (SOLVED)

0 favourites
  • 3 posts
From the Asset Store
Pixel Sprites ala ReactorCore - Builder Hardware - Large pack of sprites!
  • If i have one layer, and right mouse button is spawn sprite and left mouse button when i click on sprite > sprite destroy

    But when i spawn many sprites in this same place when i clink one time all have been destroyed.

    How destroy only first sprite? or first sprite on top, or just one random also will be good for me

    I need this solution for survival game with inventory. Reason is When player drop items, items are placed in this same place so its impossible to drag them to inventory one by one

    Pick up items back to inventory is when player overlapping item on ground and press space on keyboard

  • Mouse On Sprite Clicked
    Sprite Pick Top : Sprite Destroy
    

    Instead of "Pick Top" you can use "System Pick Random".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Mouse On Sprite Clicked
    Sprite Pick Top : Sprite Destroy
    

    Instead of "Pick Top" you can use "System Pick Random".

    dop2000 hero of the day !

    i like more and more thic Construct3

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