Advertisement
MRDANEEYUL

lights_surface_draw

Oct 15th, 2022
2,582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Game Maker 0.42 KB | Source Code | 0 0
  1. /// @function       lights_surface_draw()
  2. /// @description    draws the lights surface after the filter
  3. function lights_surface_draw()
  4. {
  5.     // Okay this time we only want the Draw End event, so anything that's not that, return
  6.     if (event_type != ev_draw || event_number != ev_draw_end)
  7.         return;
  8.    
  9.     // Draw the surface!
  10.     if (surface_exists(global.lightingSurface))
  11.         draw_surface(global.lightingSurface, global.viewX, global.viewY);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement