Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 28th, 2012  |  syntax: Game Maker  |  size: 0.44 KB  |  hits: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. draw_set_color(c_red)
  2. draw_circle(x,y,rad,0)
  3. draw_set_color(c_lime)
  4. draw_primitive_begin(pr_trianglefan)
  5. draw_vertex(x,y)
  6. i = 0
  7. while(i<health){
  8.         draw_vertex(x+lengthdir_x(rad,(i/100)*360),y+lengthdir_y(rad,(i/100)*360))
  9.         i+=1
  10. }
  11. rad -= 20 //thickness
  12. while (i > 0){
  13.         draw_vertex(x+lengthdir_x(rad,(i/100)*360),y+lengthdir_y(rad,(i/100)*360))
  14.         i-= 1;
  15. }
  16. draw_primitive_end()
  17. draw_set_color(c_black)
  18. draw_circle(x,y,rad,1)