Discuss Scratch

HannahCox05
Scratcher
5 posts

How do I do a good working static effect

Any one got a good one that works?
Tbtemplex97
Scratcher
100+ posts

How do I do a good working static effect

static gif.
Ninkancho
Scratcher
500+ posts

How do I do a good working static effect

Get a custom block running without screen refresh to move a 1px sprite across every pixel on the screen while switching costume randomly to one of several shades of grey and stamping. I'll try to build it with scratchblocks, gimme a sec.

Last edited by Ninkancho (Nov. 11, 2015 03:17:25)

Ninkancho
Scratcher
500+ posts

How do I do a good working static effect

This should work. The sprite running the code should be the tiniest dot possible, and have several costumes, each a similar dot in a different shade of grey.

whenclickedforeverifstatic=1thenshowstaticelseclearhidedefinestaticRun without screen refreshgotox:-240y:180repeatuntilxposition=240andyposition=-180switchcostumetopickrandom1tonumberofcostumesinthespriteifxposition=240gotox:-240y:yposition-1elsechangexby1stamp

Then all you need is to set the variable (static) to 1 whenever the static effect is needed, and 0 whenever it isn't.

Hope this helped!

Last edited by Ninkancho (Nov. 11, 2015 03:36:33)

Ninkancho
Scratcher
500+ posts

How do I do a good working static effect

Actually, that's turning out pretty laggy. Let me try something else, then link the test project I made for you :)

EDIT: Yeah, no, that's not working out either. Never mind. Just use this instead I guess

Last edited by Ninkancho (Nov. 11, 2015 03:53:46)

TheLogFather
Scratcher
1000+ posts

How do I do a good working static effect

Do you want one drawn across the whole screen with pen, or is it ok just using costumes?
Do you want it to look like the whole thing is static (like a non-tuned TV set, if you remember what they look like!), or do you want just parts of an existing image to have extra static lines across it?

The project linked above uses pen to draw the static across the whole screen, and it looks pretty decent. It's quite intensive, though, since it's drawing so many short lines. Some computers will struggle to manage.

If you want to ‘overlay’ a static effect over the top of whatever else you have on your screen (and you want to still be able to see ‘through’ it to some extent), then you'll have to go with costumes - that does work pretty well. You can see an example of that in InterXeptor 3D, when you pause it while playing the game (also, when you die it fades out to the static) - shoutout to @MrLog for coming up with all that - I only did the actual 3d stuff…

And if you just want static lines to appear randomly over the top of whatever you've already got on screen (so it's like interference ‘scratches’ appearing), then I think a few such small linear static costumes would also be the way to go.

Last edited by TheLogFather (Nov. 11, 2015 10:40:42)

HannahCox05
Scratcher
5 posts

How do I do a good working static effect

Thx

Powered by DjangoBB