雪碧动画使用颜色从上到下效果 [英] Animate Sprite using color in top to bottom effect

查看:149
本文介绍了雪碧动画使用颜色从上到下效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CCTintTo法精灵如何为s $ P $垫颜色从上到下。
因为我用的方法CCTintTo在精灵小号$ P $垫的颜色。但我希望能像在从上到下US preading颜色。
什么为这个类型的动画做的。

How to spread color Top to Bottom using CCTintTo method in sprite. Because i am using CCTintTo method to spread color in sprite. But i want to look like spreading color in top to bottom. What to do for this types of animation.

在此先感谢。

推荐答案

是CCLayerGradient是你在找什么for.By您正在使用coloring.If您正在使用CGContextSetRGBFillColor方法来填充子画面的颜色那么它有什么技术的方式将是棘手的,但如果你正在使用图像填充颜色,然后图像的plist的漂亮序列可用于制作动画,这将给你你正在寻找确切的疗效。

Yes CCLayerGradient is what you are looking for.By the way what technique you are using for coloring.If you are using CGContextSetRGBFillColor method to fill the sprite color then it would be tricky but if you are using images to fill color then nice sequence of images plist can be used to produce animation which will give you the exact effect you are looking for.

拍摄图像的顺序和使用CCSpriteBatchNode否则,如果你想使用RGB颜色来填充精灵,那么你必须寻找渐变效果动画。

Take the sequence of images and animate them using CCSpriteBatchNode otherwise if you want to use RGB colors to fill sprite then you have to look for gradient effect.

这篇关于雪碧动画使用颜色从上到下效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆