5 Replies Latest reply on Mar 13, 2010 3:56 PM by kglad

    Trying to make Health Bar

    TheBrody Level 1

      I'm trying to make a health bar. I'm trying to make it so when your health goes down, the bar moves.

       


      Health = 100;

       

      HealthBar.TheBar._xscale = Health;

       

      function updateHealthBar(){
          HealthBar.TheBar._xscale = Health;
      }

       

       

      So far thats what it does. I made a button, and when you press it, it takes your health down by 5.

       

      How can I make just one side move to the left instead of them both moving towards the middle?