press space key to see it work remix for a working hp bar! (max hp 85) (min. hp 1) please note that the background on the hp bar must be a sprite, and the code only works with it in that position