i am making a fps and i am using a panel for the health bar. the thing is i originally planned to have the pos_x of the panel to be the health variable and have the ability to give the panel a -x value which would move it off screen and give the impression that the bar was getting smaller but when i try this the game brings up a error. it seems i cant use a variable to define the pos_x of a panel, so does anyone know a way around this or a different way to get a health bar?


The only thing in life you can depend on is death and taxes.