Is there a way to make an limited amount of running energy that decrease every certain amount of steps and is constantly increase every certain amount of frames, and that when the running energy is totally drained down the character will be only able to walk. And I need a bar that can be added to a hud that shows the amount of running energy you have left.