0
votes

How to detect multiple collision point in sprite body. I know the detection of sprite bodies but don't know in custom collision.

In my game i have player and enemy sprite both are in dynamic body and I want to detect collision in two way like mario type. Collision detection in top of the enemy and another is collision detection in front of enemy..

How can i do this??

Thanks in advance.

1

1 Answers

1
votes

you can add different fixtures to the head and to the bottom of your enemy. then just check which enemy fixture collided with your hero