How do I destroy overlapping objects while "On Start of L.."

Get help using Construct 2

Post » Sat May 02, 2015 10:57 am

I am trying to re-create a game in Construct2 that I made some time ago.
I am spawning a lot of barrels "On start of layout"; and I want to re-position the ones that are overlapping.

So right now I am doing a while loop that is running until there are X amount of barrels in the game. And inside the while loop I am trying to destroy overlapping barrels. (However the last part is not working)

Image

Screenshot of the game:

Image

How come the overlaps are not getting destroyed?
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Sat May 02, 2015 2:13 pm

You can't compare two of the same object type at the same time. Put bomb into a family and change event 3 to:
bomb is overlapping BombFamily -> destroy bomb

(You don't need a fourth event).
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sat May 02, 2015 3:52 pm

Thanks @blackhornet !
It worked perfectly.
(Any explaination as to why this works like it does?)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Nicolas951, tarek2 and 13 guests