how do you make a character attack an enemy

I can’t figure out how to make my character attack an enemy. Can anyone one help?

collision with enemy - minus 5- from the health bar
collision with enemy - show alert - restart ga,e

Are you controlling the character? Maybe you could show us the game?

Screen Shot 2015-06-24 at 12.00.05 PM

Here’s an example.

Destroyers stop the coding commands of the object entirely, so you could add a death animation instead.