w create bos'a:
GML
alarm[0]=120
direction=180
speed=4
hp=100
w alarm 0:
GML
direction-=180
alarm[0]=120
w kolizji z bohaterem:
GML
hp-=1
w draw:
GML
draw_healthbar(x-100,y-50,x+100,y-40,hp,c_gray,c_red,c_green,0,1,1)
draw_sprite(sprite_index,image_single,x,y)