create global variable. (content number = 5 )
example in ES : if colission with enemy then substract global variable 1 (so 5 times will game over)
if score change substract to add (number value)
imho
mochiz
Develop games in your browser. Powerful, performant & highly capable.
imho, you can make a trigger when near from player. and when collision trigger set Y to zombie