Health below 0 - Glitch Garden

In Glitch Garden, the player Health keeps going below 0. I’ve tried putting
if (health <= 0) { health = 0 }
in various places but it doesn’t seem to work.

Hi Whirz,

How did you check that if (health <= 0) { health = 0 } did not work? Was the code block called? Where exactly did you use that piece of code?

This topic was automatically closed after 2 hours. New replies are no longer allowed.

Privacy & Terms