[SOLVED] Pick Up Multiple Items On Top Of Each...

Get help using Construct 2

Post » Tue Feb 04, 2014 5:28 am

Hello,

I'm trying to make it so that when the player goes over the blue square he "collects" it. What should happen is that the blue square gets destroyed and 1 is added to the amount of blue squares that the player has. This works fine if there is only ONE blue square to pick up, but if there are multiple blue squares on top of each other they all get destroyed and only 1 gets added to the amount that the player has.

To test, you can download CAPX below and run it. To spawn some blue squares press 3. Spawn a lot and they will fall on top of each other, try to collect them and only 1 will be collected but all will be destroyed.

Example CAPX

Any help is appreciated.

EnzanEnzan2014-02-04 05:55:25
B
13
S
3
G
3
Posts: 35
Reputation: 2,731

Post » Tue Feb 04, 2014 5:44 am

add the condition: System -> for each blue square
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Tue Feb 04, 2014 5:52 am

[QUOTE=Burvey] add the condition: System -> for each blue square[/QUOTE]

Ah, so simple. I was mistakenly trying to use "trigger once" but I was supposed to use what you mentioned.

Thanks for pointing me in the right direction!

B
13
S
3
G
3
Posts: 35
Reputation: 2,731


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, LaDestitute, OBLIVION, yiuyiu6666 and 25 guests