Scale of object to 0 and game over

The FuelGauge object’s width gets smaller with each keypress. When the width’s scale reaches 0 or < 0, I want the game to end. However, this is not working. Any help would be appreciated. Thank you.

scale.png

Try with <= instead of < ? :slight_smile:
Or use a real low value near 0 like 0.01, because you may be never reaching 0.

Thank you. That worked. I don’t know why I couldn’t think of that. :smiley:

In my game, the player can collect more fuel. How can I make sure that my FuelGauge graphic never gets bigger than the original value? Thank you.

I’ll answer my own question. If the scale is > 1, set it to = 1.