How do I make multiple sources of light?
id: 656345
category: Help with Scripts
posts: 7
Jan 16, 2023 09:33:59
How do I make multiple sources of light?
view on scratch
view on legacy ocular
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
Jan 16, 2023 11:56:35
How do I make multiple sources of light?
view on scratch
view on legacy ocular
Alex_Ilya
loading
You will have to use a pen.
Jan 16, 2023 14:23:06
How do I make multiple sources of light?
view on scratch
view on legacy ocular
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
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
Jan 16, 2023 18:15:16
How do I make multiple sources of light?
view on scratch
view on legacy ocular
Alex_Ilya
loading
But if there are several such “light sources”, then it will work poorly. 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
Jan 18, 2023 09:13:27
How do I make multiple sources of light?
view on scratch
view on legacy ocular
ZBXG
loading
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. 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
Mar 29, 2024 01:17:30
How do I make multiple sources of light?
view on scratch
view on legacy ocular
minecraftmemer182
loading
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
Mar 30, 2024 14:01:33
How do I make multiple sources of light?
view on scratch
view on legacy ocular
EmanwhoisEman
loading
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!
Good luck!