Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Glowing Effects
- SixWat-er
-
Scratcher
41 posts
Glowing Effects
Hi,
I would like to know how to create a realistic glowing effect that works on all sprites. If anyone know an amazing method, i'll credit you!
Method(s) I've tried:
I would like to know how to create a realistic glowing effect that works on all sprites. If anyone know an amazing method, i'll credit you!

Method(s) I've tried:
when green flag clicked
repeat (10)
change size by (1)
stamp
change [ghost v] effect by (1)
end
- awesome-llama
-
Scratcher
1000+ posts
Glowing Effects
“glow” effects are usually just done by blurring the brightest parts of the image, so for you to recreate this effect, you would have to come up with a way to do this.
There's no simple glow effect built in to Scratch and there's also no easy way to do blurs either. You could try to do everything externally in a different image editor and then reimport those costumes with the glare added, though of course this doesn't give you much control and it's also a lot of work.
There's no simple glow effect built in to Scratch and there's also no easy way to do blurs either. You could try to do everything externally in a different image editor and then reimport those costumes with the glare added, though of course this doesn't give you much control and it's also a lot of work.
Last edited by awesome-llama (Jan. 3, 2022 04:38:22)
- ducki-
-
Scratcher
7 posts
Glowing Effects
In costumes, you can create a circle and using the centre gradient tool make the first colour yellow/white or whatever colour you want to glow and set the second colour to transparent. After that drag it onto the top of whatever you want to glow. For an animated effect make the glow effect a separate sprite from whatever you want to glow. Then try this code:
Or this one:
Hope I helped!
when green flag clicked
forever
repeat (10)
change [ghost] effect by (5)
end
repeat (10)
change [ghost] effect by (-5)
end
end
Or this one:
when green flag clicked
forever
repeat (10)
change size by (5)
end
repeat (10)
change size by (-5)
end
end
Hope I helped!
- lat2000
-
Scratcher
19 posts
Glowing Effects
what i would personally do is create a clone with the exact costume and make its so that lets say the original size 100% make the clone go to 150% with 100 ghost effect and work its way down to ghost effect 50 and size 100%. and i added some extra effects to make it look better… the thing is it really only shows the color of the outside of the sprite, but it still looks like a pretty cool glow
and also i would recommend tampering with this block:
anyway, here is the code:
another benefit of this chunky code is that it can be applied to any sprite without having to be configured!
so yeah basically what you have done, just way to over engineered
hope this helps!
here is the turbowarp linkie: https://turbowarp.org/623523585/editor
and also i would recommend tampering with this block:
change [brightness v] effect by (-2)but i would make the value stay between -0.1 to -2
anyway, here is the code:
when green flag clicked
create clone of [myself v]
forever
go to front
set [Sprite1X v] to (x position)
set [Sprite1Y v] to (Y position)
end
when I start as a clone
forever
glow
end
for the function set to run without screen refresh
define glow
clear
go to x (Sprite1X) y (Sprite1Y)
show
set [ghost v] effect to (100)
set size to (150) %
set [fisheye v] effect to (100)
set [brightness v] effect to (100)
repeat (50)
stamp
change [ghost v] effect by (-1)
change size by (-1)
change [fisheye v] effect by (-2)
change [brightness v] effect by (-2)
end
hide
another benefit of this chunky code is that it can be applied to any sprite without having to be configured!
so yeah basically what you have done, just way to over engineered
hope this helps!

here is the turbowarp linkie: https://turbowarp.org/623523585/editor
Last edited by lat2000 (Jan. 4, 2022 02:01:24)
- SixWat-er
-
Scratcher
41 posts
Glowing Effects
what i would personally do is create a clone with the exact costume and make its so that lets say the original size 100% make the clone go to 150% with 100 ghost effect and work its way down to ghost effect 50 and size 100%. and i added some extra effects to make it look better… the thing is it really only shows the color of the outside of the sprite, but it still looks like a pretty cool glowThanks! This helped me.
and also i would recommend tampering with this block:change [brightness v] effect by (-2)but i would make the value stay between -0.1 to -2
anyway, here is the code:when green flag clicked
create clone of [myself v]
forever
go to front
set [Sprite1X v] to (x position)
set [Sprite1Y v] to (Y position)
endwhen I start as a clone
forever
glow
end
for the function set to run without screen refresh
define glow
clear
go to x (Sprite1X) y (Sprite1Y)
show
set [ghost v] effect to (100)
set size to (150) %
set [fisheye v] effect to (100)
set [brightness v] effect to (100)
repeat (50)
stamp
change [ghost v] effect by (-1)
change size by (-1)
change [fisheye v] effect by (-2)
change [brightness v] effect by (-2)
end
hide
another benefit of this chunky code is that it can be applied to any sprite without having to be configured!
so yeah basically what you have done, just way to over engineered
hope this helps!
here is the turbowarp linkie: https://turbowarp.org/623523585/editor
I will credit you.- Discussion Forums
- » Help with Scripts
-
» Glowing Effects