Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- draw_set_color(c_red)
- draw_circle(x,y,rad,0)
- draw_set_color(c_lime)
- draw_primitive_begin(pr_trianglefan)
- draw_vertex(x,y)
- i = 0
- while(i<health){
- draw_vertex(x+lengthdir_x(rad,(i/100)*360),y+lengthdir_y(rad,(i/100)*360))
- i+=1
- }
- rad -= 20 //thickness
- while (i > 0){
- draw_vertex(x+lengthdir_x(rad,(i/100)*360),y+lengthdir_y(rad,(i/100)*360))
- i-= 1;
- }
- draw_primitive_end()
- draw_set_color(c_black)
- draw_circle(x,y,rad,1)
Advertisement
Add Comment
Please, Sign In to add comment