flash文字特效:文字特效

这篇文章由于内容过少似乎不足于成为这个系列文档中篇,有关包含在这篇文章里知识点更多介绍和例子请参照上面提供链接,这篇文章来源于我个想法:在我游戏中放置个全屏显示Logo画面,内容可以是版权声明等,如果要使用文本,很明显,这个文本在这个Logo上最好要是动画.

看演示永远是最好理解上面那段话最好方式,你将在里看到个动人画面,虽然不是3D,但是它足够简单,并且几乎现在每台计算机都支持这种方式,当然,更重要,这种方式在速度上也会是很快.

通常情况下,你在绘图页上输出文本只有种颜色,除非你做点处理:比如你可以使用你自己写文本绘制过程,或者使用种不常见字体,在我们例子中,正是利用了本段开头谈到只能输出种颜色文本这个"缺点"构造了个新效果,这种"绕过"缺点而把它转为优点工作到底是如何样进行呢:文本只能是种颜色,我们可以使它透明显示,这表明你可以透过文本看到它下面页面内容,如果我们在它下面放置些美观东西,比如些动画图片,文本显示会不会因此成为非静态呢?如果会话,我们就达到了绕过上面谈到缺点而使文本显示效果变好.

这样话,只是通过个小小聪明想法,我们就在现有资源基础上,构造了个美好文本显示视觉效果,当然这只是想法而已,我们得编程使它变为现实.
We'll need some animated textures - not too dficult. Just draw some. Keep them small, otherwise they'll slow the program down. 
We'll tile the animation onto one surface; make it a vertical surface to avoid the problems with wide surfaces. 
We dont need to have a pre-drawn surface for the text - we can create a blank surface and draw the text on ourselves. 

我们将使用到些动画文本,

We'll use a source colour key rather than a detination colour key - as there's much better support for the source colour key. 
Here's the texture we'll be using. It's going to be made up of 20 frames - 10 up, 10 down, to get everything moving smoothly. The text to be drawn will be size 20; so we need the texture to be 30 pixels high - 20 of these means that it'll be 600 pixels high in total. Not too bad. The width needs to be 300 pixels to suit our text. Overall dimensions = 600x300.


It may look small, but when the screen is at 640x480 it won't be too bad.

Download the example program - it's the only way you'll see proper animation. You can get it from the top of this page, or from the downloads page.
Tags:  网页文字特效 ae文字特效 ps文字特效 flash文字特效

延伸阅读

最新评论

发表评论