Description

An efficient surface based 2d lighting and shadow system packed with features and optimizations.

Notice: Fast Lights only works with GameMaker Studio 1.x.

Forum link with the docs.

Download the example executable.

Download the example project.

I tried to show off nearly all the features so you can see how to use them.

Should work on all platforms. Successfully tested on Windows, Android, and HTML5.

Shadow casters can be defined by a sprite, an arbitrary set of points, or a path.

Lights can be any gradient sprite, I made mine in GIMP by drawing a shape, adding a white to black gradient and then blurring it with a gaussian blur.

Works well with physics objects and is designed with views in mind. The light map surface only takes up the visible part of the screen and lights are not drawn on the outside of of it.

There is a quality setting that allows the light map to take up less texture memory by reducing the size of the surface and scaling it up when drawing, greatly improving the performance, particularly on mobile devices. The surface can be blurred to improve the look of the shadows.

The system is object oriented, heavily relying on instance variables so there can only be one light per object and only one caster per object.

Free to use in your project, even for commercial games.

End User Licence Agreement (EULA).

Changes in 1.1.1

Fixed the bounds checking in light_draw for off-centered lights.

Version 1.1.1. Published June 27, 2017

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 02 November 2018

persistent rooms

Why does some lights are destroyed after come back from one persistent room to previous persistent room?


Gravatar

Anonymous 19 September 2018


Gravatar

Anonymous 22 August 2018

Cant open it

I cant even open this addon as my game maker studio 2 said its a invalid project file and I have got the full license gms 2

Logo

Buff (Publisher) 24 August 2018

Unfortunately Fast Lights currently only supports GameMaker Studio 1. Although not impossible to port it to GM:S 2, it will take some work.


Gravatar

Alex N 17 July 2018


Gravatar

Panayiotis Y 28 May 2018

Totally Cool

Very fast. As others have said, a GMS2 version would be awesome.


Gravatar

Luke P 08 February 2018

FANTASTIC

I would love to see a GMS2 conversion for cameras


Gravatar

Peter K 27 January 2018


Gravatar

Mathieu S 22 January 2018


Gravatar

Steven R 23 December 2017

Impressive

I would like to recommend that the author consider including some sample objects and rooms in this asset to demonstrate how to implement the various functions in a game. Also, it would be good to note that the "color" parameter in the light_init function should be a very dark color for most applications. (For example: I have used 'merge_colour(c_white,c_black,.98)' or just plain 'c_black')

Great asset!!!

Thanks!

Logo

Buff (Publisher) 13 January 2018

Hey Steven,

There is an example project and documentation that says the shadow color also controls the darkness of the shadows.
You can find this in the support forum: https://forum.yoyogames.com/index.php?threads/fast-lights.12722/


Gravatar

Simon J 06 November 2017


Gravatar

Anonymous 30 August 2017

Simply astonishing!


Gravatar

Mhammad h 29 June 2017

.

.


Gravatar

Kevin K 30 April 2017

Thank you.

This review was left for a previous version of this asset.


Gravatar

Simon M 29 March 2017

This review was left for a previous version of this asset.


Gravatar

Liquid G 24 January 2017

Great contribution, mate...

This review was left for a previous version of this asset.


Gravatar

Johan L 26 December 2016

This review was left for a previous version of this asset.


Gravatar

Ata N 15 December 2016

I admit that..

Victor C is right, this is a greatest shadow lighting asset ever in this store. Best of that (or Top on that if you prefer), the author, Buff let us use in both commercial/non-commercial games and... FOR FREE !

Thank you so much Buff! Really !

This review was left for a previous version of this asset.


Gravatar

Anonymous 03 December 2016

Wow!

I'm really happy I came across this extension! And I'm surprised to be the first to review.
This extension is one of the best I have ever used! I am currently using it in my game and it only took about 15 minutes to get everything set up and working. It works and looks great!
Best of all, free to use for non-commercial/commercial games.
Great work, Buff and thank you for sharing with the community :)

This review was left for a previous version of this asset.

Package contents

Loading, please wait

What is the issue?

Back to Top