Help!

Hay im trying to make a game where if a player touchs a enemy he loses 1 heart and so on plz help idk how to do it