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
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.
Offline
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.
Offline
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
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)
Offline
Thanks. Yeah, its ghost. I'm just a doofus. LOL, I had 0 and 100 confused.
Offline
Yeah if the Ghost Effect is High, that means it's less visible.
Offline
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
Yes, just ignore that. I was under the impression that the Repeat block did everything automatically unless it was specifically instructed to wait.
Offline
Offline