Confusing. Need help..

Get help using Construct 2

Post » Sun Jan 20, 2013 2:49 am

Hi Guys,

Okay, so i have a blue ball, and some blue, green, and red bricks.
There are 3 blue bricks besides each other. And i want to destroy them all when the blue ball hits them.
But if there are no blue bricks besides a blue brick, i dont want all the blue bricks to get destroyed.

lol, does that even make sense? :P
Anyway, in short... Im trying to destroy "pinned" same color bricks.
Like in all Bubble shooter games. But this one is killing me, i really cant seem to get it working.

Any help, examples or just anything would be a great help!
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Sun Jan 20, 2013 2:56 am

I would check for objects of that type that are less than or equal to the size of the object that are of the same type. If they exist, I'd destroy them and run the same test on them as well.

If that made sense.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Sun Jan 20, 2013 3:01 am

Hmm, still a little confused. Can you post an example?
But wouldt it destroy all? i mean im only looking to destroy those who are connected / besides each other.
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Sun Jan 20, 2013 3:43 am

I figured it out. Using Floodfill. :- )
B
34
S
8
G
7
Posts: 498
Reputation: 7,753


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests