The only improvement I'd make is using the nframes variable, and perhaps a #define setting the max hp. That way the draw of the hp bar is completely hands off. nframes holds the number of frames in the current animation, so exactly what 40 did. Thanks for posting this, forgot to make the ged I posted for Wertyboy dynamic.