A demonstration using surfaces and blendmodes to create lighting effects in GameMaker Studio 2.

First, the lighting information is drawn onto a black surface (where black = transparent and white = opaque) and then blended with the background image using the built-in blendmode function.

gpu_set_blendmode_ext(bm_dest_color, bm_zero);


  1. Press SPACE to cycle through draw modes
  2. Hold LEFT MOUSE and drag to resize light
  3. Hold RIGHT MOUSE and drag to set ambience

Additional Credits:

Background image is Deep Forest by aamatniekss

Font is m3x6 by Daniel Linssen

Leave a comment

Log in with itch.io to leave a comment.