Quote:
Originally Posted by Hezzy002
It looks like he wants it centered, though, so he'd have to do something more akin to:
screenwidth / 2 - width_of_hpbar / 2
|
simplify!
x = (screenwidth - IMG_WIDTH) / 2;
That's all :P
If you want it to be to the right then wrap that in quotes then + (whatever offset from center). Also make sure to re set values when the screen is resized.