How do I make multiple sources of light?

id: 656345

category: Help with Scripts

posts: 7

ZBXG ZBXG loading
I've already figured out how to make only a small bit around the player visible and make it so that everywhere else is just pitch black but I cant seem to figure out how to make multiple of these. The light source I made was just a a sprite with a square with a “fade into color” effect and made it fade from black to invisible, after that I added pure black squares around this “light source effect” and boom, everything was black except for around the player. Now Im just trying to figure out how to make other things also have this effect. The sprite cant just be copy pasted then made to follow another sprite, no no, it wont work like that since the black squares on the first light source effect sprite will cover the second sprite's “light source effect”. Does anyone know how to make a workaround on this? It's starting to get me frustrated
Alex_Ilya Alex_Ilya loading
You will have to use a pen.
HawkwingX HawkwingX loading
Do what this kid did
https://scratch.mit.edu/projects/246603555/
He created a black background, a white circle in front of the background, and all the obstacle sprites were on a layer higher then the circle to give it the illusion of a light
Alex_Ilya Alex_Ilya loading

HawkwingX wrote:

Do what this kid did
https://scratch.mit.edu/projects/246603555/
He created a black background, a white circle in front of the background, and all the obstacle sprites were on a layer higher then the circle to give it the illusion of a light
But if there are several such “light sources”, then it will work poorly.
ZBXG ZBXG loading

HawkwingX wrote:

Do what this kid did
https://scratch.mit.edu/projects/246603555/
He created a black background, a white circle in front of the background, and all the obstacle sprites were on a layer higher then the circle to give it the illusion of a light
It wont work that well since he's using black objects on top of a black background, I'm using colored objects. Here's my project so you can see what I'm doing. Either way thanks for the answers, I think I'll just stick to what I'm doing tho.
hey, I don't even know if this forum is still working, but I've faced a simpler problem, but since I'm using fire a color that sticks out wont cut it, I figured its been a year so any ideas, thanks
It may be possible to use the light source idea, if you can figure out how to draw a background with pen/use white on a black background, and just have an opposite version of the fade effect with your background color, then just switch the sprite to that, stamp, switch back, and boom! a nice light fade. Plus this would work a bit better with many sprites as it would use transparency.
Good luck!