How do I detect a collision with a solid object?

Just started using Construct 2? Post your questions here

Post » Fri Jul 10, 2015 10:31 pm

Hi! I was wondering if there's anyway to detect when a object collides with an object that has the "Solid" behaviour. To be more specific, I have an object with the "Bullet" behaviour, and I want it to destroy itself when it collides with a "Solid" object.

Thanks in advance!
B
16
S
5
Posts: 41
Reputation: 1,156

Post » Sat Jul 11, 2015 1:59 am

Message: seymore is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
You can create a family for objects with solid behavior. I created a basic example.
B
6
S
1
Posts: 29
Reputation: 465

Post » Sat Jul 11, 2015 1:09 pm

Oh, good idea, thanks. But, I still wonder if there's anyway to do it without families...
B
16
S
5
Posts: 41
Reputation: 1,156

Post » Sat Jul 11, 2015 1:21 pm

As far as I know there is no way to select all objects based on the fact that they have solid behaviour itself..
But you could use the condition sprite - solid is enabled for each of the objects concerned?
I guess doing it with families and giving the family the solid behaviour would be the way to go..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests