In this project there are two types of blur, one static (for the menu) and the other realtime (for blurring with high performance).
All code is fully customizable, and fully commented!
For Game Maker Studio v2.3.1+ If you want v1.4, click here.
draw_surface_blur(surface, x, y, w, h, downamount) sprite_create_blur(sprite, downamount, width, height, blurradius, quality, directions); sprite_draw_blur(blur_id, x, y); sprite_blur_clear(blur_id);
For static blur (pause menu):
blurred_sprite = sprite_create_blur(sprite_or_screenshot, 16, width, height, 32, 8, 16); // (run only 1 time: create event) sprite_draw_blur(blurred_sprite, 0, 0); // (run in the draw event)
For realtime blur:
draw_surface_blur(application_surface, 10, 10, 300, 200, 0.3); // (run in the draw event);
All support will be given to those who buy the content. Thank you for getting here!