Discuss Scratch

Greatguy123
Scratcher
500+ posts

Fade in/out Block

This is a really old topic, and not a great idea. Closing…

I think it would be nice if there was a dedicated block for fading in and out. It could be something like this:
fadeoutfor1secs
It would also drop down to “in”. It would completely fade either in or out during the span of however many seconds you put in. I am aware of the workaround:
repeat10changeghosteffectby10
or
repeat10changeghosteffectby-10
to fade back in. Maybe I'm just lazy, but it gets kind of tedious to pull out a repeat () block, pull out an effect block, select ghost, and change the numbers for every time you want to fade in or out. Instead, you could just pull out a fade in/out block, set the number, and be done. I think this would be good because I think fading in and out is a standard procedure and should be easier to do. It would make new Scratchers more apt to use it as well, instead of just abruptly showing and hiding. Of course, you could still show and hide, but this would be an easy extra option if you want a smoother action. Another thing this would help with is so that you can time the fading in/out specifically, which is hard to do with the workaround. You like?

Last edited by Greatguy123 (Oct. 10, 2016 03:01:18)

ExtremeLogic
Scratcher
500+ posts

Fade in/out Block

Would save little time and effort. I prefer the workaround.
No support.
Greatguy123
Scratcher
500+ posts

Fade in/out Block

ExtremeLogic wrote:

Would save little time and effort. I prefer the workaround.
No support.
I think you missed most of the second paragraph. There would be more advantages than just being faster.
1234abcdcba4321
Scratcher
1000+ posts

Fade in/out Block

Maybe…

You know what? No.
Workaround: (Requires a free timer) (Requires you to keep track of ghost effect)
definefadein?forsecssecsresettimerrepeatuntiltimer>secsifin?thensetghosteffecttoghost-100-ghost/secs/timersetghostto100elsesetghosteffecttoghost-ghost/secs/timersetghostto0

I think this works.

Last edited by 1234abcdcba4321 (April 17, 2014 21:49:10)

Greatguy123
Scratcher
500+ posts

Fade in/out Block

Um…okay. I'm guessing the average Scratcher wouldn't know how to do this.
1234abcdcba4321
Scratcher
1000+ posts

Fade in/out Block

If you want something like that, go with something simpler or use a complicated workaround. It's your choice!
(The fact that it was a workaround is a thing)
lisafireball
Scratcher
100+ posts

Fade in/out Block

But..The fade block somehow confuses me. ;n;
Greatguy123
Scratcher
500+ posts

Fade in/out Block

lisafireball wrote:

But..The fade block somehow confuses me. ;n;
It would make a sprite fade in and out.
lisafireball
Scratcher
100+ posts

Fade in/out Block

Greatguy123 wrote:

lisafireball wrote:

But..The fade block somehow confuses me. ;n;
It would make a sprite fade in and out.
I know. But somehow I know that I'd have so much trouble with this block. BUT I could always use the workaround even while the fade block is in Scratch. So I support, but I probably won't use it.
Rameenh
New Scratcher
2 posts

Fade in/out Block

How would you import a number input inside of the Boolean slot for the definition block? It
only allows boolean.
Rameenh
New Scratcher
2 posts

Fade in/out Block

*inside of the if block
ProdigyZeta7
Scratcher
1000+ posts

Fade in/out Block

I happen to have fade in and fade out blocks in my Custom Block Pack. Take them free of charge.
Greatguy123
Scratcher
500+ posts

Fade in/out Block

Rameenh wrote:

How would you import a number input inside of the Boolean slot for the definition block? It
only allows boolean.
Please only post things related to this topic in this topic. By the way, the answer is you can't. It doesn't work that way.

Last edited by Greatguy123 (May 2, 2014 21:16:55)

Failord
Scratcher
1000+ posts

Fade in/out Block

Use Custom blocks. That way you can still have the adjustibility and don't have to throw the blocks together more than once.

definefadeinrepeat10changeghosteffectby-10definefadeoutrepeat10changeghosteffectby10
Greatguy123
Scratcher
500+ posts

Fade in/out Block

I'm not looking for a workaround; I think this should be an actual block.
ProdigyZeta7
Scratcher
1000+ posts

Fade in/out Block

Greatguy123 wrote:

I'm not looking for a workaround; I think this should be an actual block.
But you need to understand, easy workarounds in Scratch are easier to make than an entirely new block in Flash.
braxbroscratcher
Scratcher
1000+ posts

Fade in/out Block

Greatguy123 wrote:

I think it would be nice if there was a dedicated block for fading in and out. It could be something like this:
fadeoutfor1secs category=looks
It would also drop down to “in”. It would completely fade either in or out during the span of however many seconds you put in. I am aware of the workaround:
repeat10changeghosteffectby10
or
repeat10changeghosteffectby-10
to fade back in. Maybe I'm just lazy, but it gets kind of tedious to pull out a repeat () block, pull out an effect block, select ghost, and change the numbers for every time you want to fade in or out. Instead, you could just pull out a fade in/out block, set the number, and be done. I think this would be good because I think fading in and out is a standard procedure and should be easier to do. It would make new Scratchers more apt to use it as well, instead of just abruptly showing and hiding. Of course, you could still show and hide, but this would be an easy extra option if you want a smoother action. Another thing this would help with is so that you can time the fading in/out specifically, which is hard to do with the workaround. You like?
I made a custom block for fade and unfade. And it took about 1-2 minutes to make.
Greatguy123
Scratcher
500+ posts

Fade in/out Block

ProdigyZeta7 wrote:

Greatguy123 wrote:

I'm not looking for a workaround; I think this should be an actual block.
But you need to understand, easy workarounds in Scratch are easier to make than an entirely new block in Flash.
I do understand. I just thought that this might be different. I see from all these posts that it is in fact not different. I'm sorry for suggesting such a preposterous idea.
dude341
Scratcher
1000+ posts

Fade in/out Block

changebrightnesseffectby25

ALL HAIL THE BRIGHTNESS EFFECT BLOCK!
If you want a fade out/fade in thing, it already exists.
Look up there.
DaSpudLord
Scratcher
1000+ posts

Fade in/out Block

dude341 wrote:

changebrightnesseffectby25

ALL HAIL THE BRIGHTNESS EFFECT BLOCK!
If you want a fade out/fade in thing, it already exists.
Look up there.
Actually, what we're looking for is the ghost effect.

No support-
  • The workaround isn't that hard and barely takes a second. If you disagree, then create a custom block with the workaround in it.
  • It's not really a basic function…
  • New scratchers need to learn to program the right way, not by using cheap workarounds.
  • If you want something more precise, then try this-
definefadedirectioninsecssecswithloopsloopssetghosteffectto100hiderepeatloopssecsifdirection=inthenchangeghosteffectby100/loops*-1elsechangeghosteffectby100/loopswaitsecs/loopssecsend

Powered by DjangoBB