How do I detect where on the object the collision occurred?

Just started using Construct 2? Post your questions here

Post » Sat Aug 29, 2015 11:50 pm

I would like to be able to tell if an object's collision occurred on it's left or right side so I can set my animation differently based on this.
B
5
Posts: 18
Reputation: 261

Post » Sun Aug 30, 2015 1:49 am

Use "compare X" in a sub event.

Sprite_1 > On Collision with Sprite_2
__________Sprite_2 X > Sprite_1.X > Do Something
__________Sprite_2 X < Sprite_1.X > Do Something
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,273


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests