sorting object click & particles

Get help using Construct 2

Post » Tue Feb 28, 2012 10:12 pm

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:


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!holi2012-02-28 22:13:34
B
11
S
4
G
4
Posts: 13
Reputation: 3,177

Post » Tue Feb 28, 2012 11:03 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Feb 29, 2012 11:45 am

Many thanks Kyatric, everithing is working as expected!
B
11
S
4
G
4
Posts: 13
Reputation: 3,177


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, Magistross, PavleNikolic and 25 guests