How to add limited amount of flashlight in godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By iAbrees

I want my flashlight to be like:

On = losing battery life
Off = stop losing battery life

PLS Help

:bust_in_silhouette: Reply From: magicalogic

https://forum.godotengine.org/144303/how-to-add-flashlight-life-in-godot