How do I destroy an object when it hits ANY solid?

Get help using Construct 2

Post » Mon Nov 30, 2015 9:44 pm

The problem I have is when a bullet is fired, I want it to be destroyed when it touches a solid. However, I don't see any "on collision with solid" or anything like that in the events.

Any help?
B
12
S
3
Posts: 68
Reputation: 906

Post » Mon Nov 30, 2015 10:11 pm

If you use a bunch of different objects with the solid attribute, I guess you could add all of them to a family and set the bullet's condition to trigger when it overlaps anything from that family.

I've always used one object only for collisions though, invisible during gameplay, layered on top of sprites that are all passable. So I can customize collision detection. Pixel-perfect collisions can often be frustrating for the player.
B
15
S
7
G
7
Posts: 255
Reputation: 5,313


Return to How do I....?

Who is online

Users browsing this forum: beguinner, mcscooter, totoe and 23 guests