Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a flicker effect?
- Unfinished_Arcade
-
5 posts
How to make a flicker effect?
hey, guys. I'm making a project that has a title page. The title is supposed to flicker like a broken flashlight, but so far it just looks like a light turning on and off steadily. Can someone please help?
- Jlerpy
-
1000+ posts
How to make a flicker effect?
Like you want it to flicker unpredictably? You could make the time it waits between changes a random span?
- awesome-llama
-
1000+ posts
How to make a flicker effect?
You might find a list storing an animation of the brightness over time to provide the best control over the kind of flicker you want.
I have a project that demonstrates it here: Light Flicker - scratch.mit.edu/projects/569104540/.
I have a project that demonstrates it here: Light Flicker - scratch.mit.edu/projects/569104540/.
- Unfinished_Arcade
-
5 posts
How to make a flicker effect?
yeah, like that. Can you give me the block code for that? Like you want it to flicker unpredictably? You could make the time it waits between changes a random span?
- Holodilnik35
-
100+ posts
How to make a flicker effect?
when green flag clicked
forever
set [brightness v] effect to (0)
wait (0.5) secs
set [brightness v] effect to (-100)
wait (0.5) secs
end
try this ¯\_(ツ)_/¯
- Icefan13
-
100+ posts
How to make a flicker effect?
repeat until <title screen ends::grey>
set [flickerTicks v] to (pick random (10) to (30)) //make these numbers bigger if you want to wait longer/ vice versa
repeat until <(flickerTicks)=(-3)> //make this number smaller if you want the lights to last longer/ vice versa
change [flickerTicks v] by (-1)
if <(flickerTicks)<(0)> then
turn off the lights or something::grey
else
make sure the lights are on::grey
end
end
end
- goomyblue
-
2 posts
How to make a flicker effect?
for something simple like this i've been using a scratch assistant, you would just prompt it with smth like “make sprite/stage/backdrop” flicker and it'll give you a base code to go off of!
- Discussion Forums
- » Help with Scripts
-
» How to make a flicker effect?