How do I create an event "object on top of another object"

Just started using Construct 2? Post your questions here

Post » Thu Nov 26, 2015 7:00 pm

Hello!

I cant seem to figure this out, nor can i find the answer on the web. But maybe someone here can help me out?

I would like to make a condition that triggers an action when an object is on top of another object. Both objects have physics behavior attached to them and move around the screen before they eventually slow down. Then if object1 is ON TOP of object2 i would like to trigger an action.

Anyone got ideas of how to achieve this? So frustrated i cant figure it out! :o :roll:
B
7
Posts: 13
Reputation: 303

Post » Thu Nov 26, 2015 7:06 pm

Do you mean "is overlapping" or "is overlapping at offset"?
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 Nov 26, 2015 8:07 pm

Hi!

I used "is overlapping" earlier but now I realized I need to change that after I gave both objects a physics behavior. (they are solid now so they wont overlap each other)

I might have figured this out now!
I looked up the is "overlapping at offset" command you mentioned. And according to the manual it seems to work so that it checks if an object is within the range you set in the event sheet.

I set "is overlapping at offset x=0 and y=1" and it seems to work the way i want (when object is on top of another object it triggers an action)

yeh so problem solved :lol:
B
7
Posts: 13
Reputation: 303


Return to Beginner's Questions

Who is online

Users browsing this forum: dickylarsonn02 and 4 guests