Who gets hit

Example i have in game 1 hero with sword and 1 enemy. How i can get who gets hit? 

If collision + animation of hit so enemy can  hit hero from back…

Everything you need to know about Collision Detection can be found here:

https://docs.coronalabs.com/daily/guide/physics/collisionDetection/index.html

Also, there are examples that come with the SDK which implement collision detection.

Finally, I have an old sword fighting template, which you an find on

my site: http://roaminggamer.com/makegames/ 

https://www.youtube.com/watch?v=OjDFceRXLyc

Everything you need to know about Collision Detection can be found here:

https://docs.coronalabs.com/daily/guide/physics/collisionDetection/index.html

Also, there are examples that come with the SDK which implement collision detection.

Finally, I have an old sword fighting template, which you an find on

my site: http://roaminggamer.com/makegames/ 

https://www.youtube.com/watch?v=OjDFceRXLyc