you can make the amount of max lives, and set all the lives whivh are not in the starting to invisible, add a variable for lives, then add as many events as you need,
if [health] = 2 set heart1 visible
set heart2 visible
if [health] = 4 set heart1 visible
set heart2 visible
set heart3 visible
set heart4 visible
if player is on collision with enemy subtract 1 from [health]
it's a bit messy but i can't thank of another way