Select the objects close together

Just started using Construct 2? Post your questions here

Post » Thu Oct 06, 2016 12:39 pm

Hello every one.
I made a game that you have to destruct some blocks by a ball. I added some power ups to it same as bomb.
When the bomb collisions a block, I want to destroy the blocks they are near it. (blocks name are same.)
What can i do?
(Sorry for my english .)
B
7
S
1
Posts: 7
Reputation: 389

Post » Thu Oct 06, 2016 1:12 pm

The usual way is 'Bomb' on collision with object 'Block > Destroy 'Block'
B
46
S
15
G
73
Posts: 2,026
Reputation: 43,459

Post » Thu Oct 06, 2016 1:29 pm

After destroying the collision block you can do a Pick all and then a Pick by evaluating, using the distance() expression to pick other blocks within a certain distance of the bomb.

http://www.blackhornettechnologies.com/Construct2Stuff/DestroyByDistance.capx
ImageImageImage
B
71
S
21
G
222
Posts: 3,652
Reputation: 124,733

Post » Thu Oct 06, 2016 4:41 pm

Thank you blackhornet . It works. ;)
B
7
S
1
Posts: 7
Reputation: 389


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests