GML Basic Surfaces For Sun Rise/Fall

T

Thunder Lion

Guest
So I am having trouble finding a tutorial that would show me how to program a basic screen surface overlay to simulate light effects.

Example: when dark time, the screen should be dark with a set alpha, this surface at set times would lighten or darken up and shift hues. How do I create a basic rectangular surface to overlay? I could change alpha and hues myself but then how do I make surface lights which break the darkness for say fires or lanturns?
 


Shifting the colour of the darkness can be done before you start drawing on the surface:

Code:
surface_set_target(surf)
draw_clear_alpha(colour, alpha)
 
Top