here you go...this isn't all of it, but the rest of them are just copied with different object names in the "with statement"...I think my problem is being caused by the blend mode
//draws the health bar for the velvet wasp
with(velvet_wasp)
{
draw_self();
var bar = maxhealth;
// if armored is false draw the health bar only
if(armored == false)
{
draw_set_color(c_yellow)
draw_rectangle(self.x-10,self.y-38,self.x+(Ehealth/maxhealth)*bar,self.y-35,0)
}
// if armored is true draw both sprites and blend them
if(armored == true)
{
draw_set_blend_mode(bm_add) // this is where I think the problem is coming from because I'm blending it twice
draw_sprite_ext(spr_velvet_armor,0,self.x,self.y,image_xscale+.2,image_yscale+.2,direction,c_blue,armor/20)
draw_set_blend_mode(bm_normal)
// if armored is true and greater than 0 draw armor bar
if(armor>0)
{
draw_set_blend_mode(bm_add)
draw_set_color(c_blue)
draw_rectangle(self.x-10,self.y-38,self.x+(armor/maxhealth)*bar,self.y-35,0)
draw_set_blend_mode(bm_normal)
}
}
else
{
draw_set_color(c_yellow) // if armored is true but less than 0 draw health bar
draw_rectangle(self.x-10,self.y-38,self.x+(Ehealth/maxhealth)*bar,self.y-35,0)
}
draw_set_color(c_black)
draw_rectangle(self.x-10,self.y-38,self.x+bar,self.y-35,1)
}