sorting object click & particles

0 favourites
  • 3 posts
From the Asset Store
Particles support animations, collisions, effects and etc.
  • Hi all,

    I searched on the forum about a solution for my problem, but I suppose im too noob so I do not find anything :/

    My problem:

    I have a top down view on a chest filled by gold coins and I want the player to click on every single coin. (click> collision > destroy)

    Unfortunately when i click on a pile of coin, the entiere pile is clicked and destroyed.

    Is there another way to made it?

    Here is a screenshot of what I have for now:

    <img src="http://img11.hostingpics.net/pics/870867code.png" border="0" />

    In another bug, it seems that "one shot" won't spawn any particles but continuous spray does...

    English is not my mother language so if you need more explanation, please just ask

    any ideas?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Merge event 2 and 3 into a :

    + On left clicked on 1Gold

    + Pick random 1Gold instance

    --> 1gold destroy, etc...

    This will pick only a single instance amongst those clicked and you can get rid of the sprite "click".

    For "one-shot" you have to spawn a new Particles object, not reuse a previous one.

    So instead of Particles2 set position, use system action

    Create Particles2 Mouse.x, Mouse.y

    This should fix it all.

  • Many thanks Kyatric, everithing is working as expected!

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