Discuss Scratch

ZBXG
Scratcher
2 posts

How do I make multiple sources of light?

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
Scratcher
1000+ posts

How do I make multiple sources of light?

You will have to use a pen.

My name is ****.
I'm ** years old.
I live in ********.
I like **** and ****.
Favorite project: Battle creator
New project: Animate stickman
Тема о Русской Скретч Вики
HawkwingX
Scratcher
69 posts

How do I make multiple sources of light?

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
Scratcher
1000+ posts

How do I make multiple sources of light?

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.

My name is ****.
I'm ** years old.
I live in ********.
I like **** and ****.
Favorite project: Battle creator
New project: Animate stickman
Тема о Русской Скретч Вики
ZBXG
Scratcher
2 posts

How do I make multiple sources of light?

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.
minecraftmemer182
Scratcher
1 post

How do I make multiple sources of light?

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
EmanwhoisEman
New to Scratch
1 post

How do I make multiple sources of light?

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!

Powered by DjangoBB