I'm trying to find a code that with have a label and that is an hp bar and I want it to subtract 20 each time a button is pressed until it hits 0 and it starts from 100

I'm trying to find a code that with have a label and that is an hp bar and I want it to subtract 20 each time a button is pressed until it hits 0 and it starts from 100


JESTER.aia (2.0 KB)
blocks

I try to test it and it says undefined variable. (irritants: yail/com.google.appinventor.components.runtime.LinearProgress) do you know what that means?

Possibly because the LinearProgress does not work with App Inventor for ios yet and you are testing using ios. What happens if you test ABG's code on an Android device?

Ok thank you I will check and see if it works on android

image
Here's a simpler one .

JESTER.aia (2.0 KB)
blocks (1)