Specific situations of overlapping of objects.

Get help using Construct 2

Post » Thu Dec 24, 2015 1:45 pm

Hi,
I want the game to take action only when object A overlaps object B from left side only (Going from right to left) not from
Right (going from left to right).

But the problem is that it gives option only of overlapping.
Not subcategories or specific situations of overlapping.

How can I overcome this problem? :?:
B
3
Posts: 3
Reputation: 181

Post » Thu Dec 24, 2015 1:58 pm

When asking for something specific, it would be easier to answer if you could give an example capx..

Without a specific example I could think of using the boundingbox (left,right,top,bottom) to check the overlap or maybe using detection-sprites or imagepoints to do the same..

Maybe in your situation it would even be enough just to check the position of the sprite compared to the object it overlaps..
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 Dec 24, 2015 7:11 pm

you have an overlap at offset condition, but checking if X is higher or lower will also work.
Image
B
80
S
30
G
12
Posts: 517
Reputation: 12,713


Return to How do I....?

Who is online

Users browsing this forum: kaliptro and 11 guests