Gmamemaker Studio 2: Simulate a light effect around a sprite (player, fire, explosion...).
The player is followed by the obj_playerLight Hi all! This light effect is a kind of hole into a dark surface over layers of your game. This surface can be placed whereever you want: over all layers or between two layers. You can set the darkness intensity with alpha between a value from 0 (no darkness) to 1 (totaly black). We are going to create a light object associated to a sprite. This sprite is a simple white circle (Fig. 1). But you can use an animated sprite (Fig. 2). Fig. 1 obj_playerLight Fig. 2 obj_playerLight2 If you use a simple white circle, it would be interesting to make it animated by increasing and decreasing the radius with the function draw_sprite_ext. obj_playerLight: Create, Step and draw event. obj_playerLight2: Create, Step and draw event. Thanks for reading! Pssst! Play my game!!! Ghost'n Brothers 1bit (free) and Ghost'n Brothers (paid version). Only on iOS.