I have made a game and I have made a veriable called health. I have also made a sprite that should act as the health bar can some one please tell me how I can get this to work because I have tryed everything and I can't seem to find the right script.
Offline
My guess (because I haven't seen the project):
Whenever the sprite gets hurt, broadcast something (let's call it "Decrease Health").
When the sprite receives the broadcast, it changes costume to show the decreased health.
Note that your health bar sprite needs to have several costumes, one for every amount you can get hurt by.
Hope that helps!
Offline