How to implement melee combat?

Hi,

Here’s a tutorial which might help you with your situation.

Cheers,
darkZ