View Full Version : Fade in & out, with mask ?
Hi !
I've got a text scrolling (an mc wich containing static text) in my main scene. I want this text fade out, when it reaches the edge of the mask (here a rectangle). Is it possible. I always use a simple graph with color fading out on the edge. But here the background is not plain...
Thanx!;)
Abelius
06-25-2002, 07:34 PM
Well, the content of the mask should go from _alpha 100 to _alpha 0, so whatever is under it fades out... :)
Filipinho
06-26-2002, 12:23 AM
A mask can never be faded. Try setting the alpha to 0, the mask wont change.
I have created this effect anyway. place a rectangle on the top and on the bottom of the mask (inside it). Fill it with the bg color that has a gradient from 0-100. Place the gradient rectangles over the text.
I hop I explaiend what you asked for...
First sorry Abelius but Filipinho is in the true. You can always put the alpha to 0, the mask not fade out!
Now, Filipinho, if I want to use your methods, I have to get a plain Background. But it's not the case.
So how can I do that (fade in and out).
If it's you're saying about in your last post I don't understand how to make it work!
Thanx;)
Filipinho
06-26-2002, 07:08 AM
Sorry... I didn`t read the whole problem...
The only way I can think of is to create about 5 copies of the bg (if its an image. I call them a,b,c,d,e here inte the example ) and just show 5 of the hieght of every copy. Then I would apply diffirent alpha to them and place them over the text.
a: shows pixels 1-5 of the bg, alpha=100
b: shows pixels 6-10 of the bg, alpha=80
c: shows pixels 11-15 of the bg, alpha=60
d: shows pixels 16-20 of the bg, alpha=40
e: shows pixels 21-25 of the bg, alpha=20
I know that this isn`t the coolest way to solve the problem, but I think it will work. or? It might be able to solve with some advanced ActionScripting, but I don`t realy know how...
please e-mail me at filipinho_no10@hotmail.com if you figure out a bettre way to do this (I`m curious). Feel fre to e-mail me if you have any other problems to...
Good luck!
I've fill the background's text with plain color :) :p :D
In that case, I use the same color with alpha 0 and 100.
Not really a solution but I'm buzy to look for! There is plenty of other thing I must do for my game!
Thanx!!!!
Billy T
06-27-2002, 03:38 AM
I dont understand your solution
Filipinho
06-27-2002, 11:24 AM
well... It wasn`t a good solution... So I don`t think you missed anything.
If you want to know how I thought, or want to test it, I can explain it to you once again. I can Uppload a fla to. But only if you want to...
Ok this was a JOKE! (hard to make joke when you don't speak in your mother tongue). :rolleyes:
Simply say that I use my old way to make fade in and out !!!
But I'll be happy if you send me a fla explaining your way!!!:p
Thanx!;)
grimm
06-27-2002, 09:51 PM
are these what you want?
Not really but tanx a lot to take your time looking for my pb.
I want the text to fade out/in not with fading out/in the MC containing the text, but with, i.e, a mask with fading out at its edge.
I move mu text witrh AS and wouldn't create a tween motion for each MC I made, in that case I can change easily the text. Are you still here? Do you understand what I want?:rolleyes:
Filipinho, it would be nice if you upload the fla... In that case I can have a look!
Thanx to all of you!!!!
Abelius
06-28-2002, 04:32 PM
My apologies about the mask fading, specially to Filipinho and xxlm... :)
Filipinho
06-28-2002, 05:35 PM
Originally posted by Abelius
My apologies about the mask fading, specially to Filipinho and xxlm... :)
What????
I have just created the fla so here it is. I havent set the text to scroll or anything, I have just done the fade effect. To get a smoother fade you can have more mask segments, but donīt forget to change the alpa on the picture.
Enjoy :)
I will try it.
Thanx.
To abelius: It doesn't matter.:)
it's really ingenious I think.
Really great.
Thanx Filipinho. And thanx to all people looking for my pb!
:p
Abelius
06-29-2002, 03:11 AM
LOL...
Every day I learn something about this MX... :)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.