Reputation: 109
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.
Upvotes: 0
Views: 199
Reputation: 10860
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
Upvotes: 1