Guest User

Untitled

a guest
Sep 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. // glow_draw(sprite, subimg, x, y, alpha);
  2. // Copyright 2012 ing. Guus Thissen aka Phantom107
  3.  
  4. draw_set_color(c_white);
  5. var i, a, o;
  6. i = -1;
  7. repeat 11
  8. begin
  9. i += 1;
  10.  
  11. a = lengthdir_x(argument4, 270+180*(i/9));
  12. o = (i-6)*4 + 24;
  13. draw_surface_ext(glow_surface, argument2+o-18, argument3, 2, 2, 0, c_white, a);
  14. draw_set_blend_mode(bm_subtract);
  15. draw_sprite_ext(argument0, argument1, argument2, argument3, image_xscale, image_yscale, 0, c_white, 1);
  16. draw_set_blend_mode(bm_normal);
  17. draw_surface_ext(glow_surface, argument2, argument3+o-18, 2, 2, 0, c_white, a);
  18. draw_set_blend_mode(bm_subtract);
  19. draw_sprite_ext(argument0, argument1, argument2, argument3, image_xscale, image_yscale, 0, c_white, 1);
  20. draw_set_blend_mode(bm_normal);
  21. end;
  22. draw_sprite_ext(argument0, argument1, argument2, argument3, image_xscale, image_yscale, 0, c_white, 0.5);
Add Comment
Please, Sign In to add comment