How do I check if ObjA is overlapping ObjB's collision poly?

Just started using Construct 2? Post your questions here

Post » Thu Aug 14, 2014 11:13 am

Hello everyone,

As in the title, is there any way of checking weather one object is overlapping another one's collision poly, or at least avoid them behaving like solid objects so it could be used to change some variables values if they are inside the collision poly? I tried that for a 4X demo I'm working on and it could help me with changing aspects like remaining movements and so...

Thanks in advance
B
9
S
3
Posts: 40
Reputation: 780

Post » Thu Aug 14, 2014 11:47 am

Yep you can check if ObjectA is overlapping ObjectB

Just add an event ObjectA is overlapping ObjectB
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

Post » Thu Aug 14, 2014 2:44 pm

Thanks!
But wouldn't it make it test the entire ObjB? I'd like to test overlapping just for the collision poly (which doesn't cover the entire object)
B
9
S
3
Posts: 40
Reputation: 780

Post » Thu Aug 14, 2014 2:45 pm

All testing is done with collision-poly not with pixels..
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

Post » Thu Aug 14, 2014 2:59 pm

Thank you.
B
9
S
3
Posts: 40
Reputation: 780


Return to Beginner's Questions

Who is online

Users browsing this forum: YoHoho and 2 guests