This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-15 19:53:10

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Fade-in effect?

How do you make a sprite fade-in?

I'm sure this has been asked before, but I can't find the answer.

I tried using the Brightness and the Ghost effects to do a fade in, but neither works well. What am I missing?

Thanks in advance!

Offline

 

#2 2010-03-15 20:29:41

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Fade-in effect?

neither works well? this is what I would do.
<set[ ghost ]effect to( 0 )>
<repeat( 20 )>
<change[ ghost ]effect by( 5 )>
<wait( 0.5 )secsc>

it works for me.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#3 2010-03-15 20:37:15

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Fade-in effect?

Don't worry about Brightness. Just set the Ghost Effect to 100, and when you want something to fade in, decrease the Ghost effect by 3, and have it under a forever loop. This way, the ghost effect will eventually disappear and your sprite will fade in. If your trying to do this to the background though, it won't work.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#4 2010-03-15 20:38:12

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: Fade-in effect?

The ghost effect should work well. Have you tried something like this?

set ghost effect to 100
repeat 100
  change ghost effect by -1

If it's too fast, you can put a wait .1 seconds after the change ghost effect by -1, if it's too slow, you can change it to repeat 50 and change the -1 to -2.

Offline

 

#5 2010-03-15 21:03:57

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Fade-in effect?

Repeating the -2 fifty times will take the exact same long as repeated -1 one hundred times. Try -3 thirty three times with intervals of .1 seconds inbetween. That way it'll take 3 seconds to fade in.

Last edited by Ace-of-Spades (2010-03-15 21:05:07)


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#6 2010-03-16 12:18:24

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Re: Fade-in effect?

Thanks. Yeah, its ghost. I'm just a doofus. LOL, I had 0 and 100 confused.

Offline

 

#7 2010-03-16 12:37:28

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Fade-in effect?

Yeah if the Ghost Effect is High, that means it's less visible.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#8 2010-03-16 17:50:13

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: Fade-in effect?

Ace-of-Spades wrote:

Yeah if the Ghost Effect is High, that means it's less visible.

One I started Scratch, I got that messed up too.

Offline

 

#9 2010-03-16 18:11:29

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Fade-in effect?

Ace-of-Spades wrote:

Repeating the -2 fifty times will take the exact same long as repeated -1 one hundred times.

This is wrong. Repeating -2 50x is twice as fast as repeating -1 100x.

Offline

 

#10 2010-03-17 05:22:18

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Fade-in effect?

Yes, just ignore that. I was under the impression that the Repeat block did everything automatically unless it was specifically instructed to wait.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#11 2010-03-18 15:48:26

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Offline

 

#12 2010-04-07 22:20:19

glaceon
Scratcher
Registered: 2010-04-07
Posts: 1

Re: Fade-in effect?

where in which category is ghost effect located?

Offline

 

Board footer