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

0 favourites
  • 3 posts
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • 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.

    Enzan

  • add the condition: System -> for each blue square

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • add the condition: System -> for each blue square

    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!

    <img src="smileys/smiley4.gif" border="0" align="middle" />

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