• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Need Help with Creating a Spotlight Effect

Mookal

Member
I’d like to have a short level intro where a spotlight is on the player, and then expands outward to reveal the rest of the screen. It should be a circle drawn at the player’s position with the rest of the screen being black.
I know the solution to this somehow involves Blend Modes, but I haven’t gotten the hang of them just yet. How can I achieve this effect?
 

obscene

Member
Make a surface
Fill it with black
Set blend mode to subtract
Draw a circle (and scale it as needed)
Draw the surface over the whole screen

This video is pretty close to what you need...

You could also cheat and just make a big black sprite with a hole in it and scale it.
 

Mookal

Member
Make a surface
Fill it with black
Set blend mode to subtract
Draw a circle (and scale it as needed)
Draw the surface over the whole screen

This video is pretty close to what you need...

You could also cheat and just make a big black sprite with a hole in it and scale it.
This worked! Thanks for the solution. :)
 
Top