使用CCEaseOut和CCSequence? [英] Using CCEaseOut together with CCSequence?

查看:1144
本文介绍了使用CCEaseOut和CCSequence?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的行动有缓解/缓解的效果,但我已经有CCSequence。如果我把CCEaseOut放在我的代码前面,运动变得奇怪。
是否可以使用CCSequence创建CCEaseOut / CCEaseIn?
这是我的代码:

I want my action have an effect ease in / ease out, but I already have CCSequence. If I put CCEaseOut in front of my code, movement become weird. Is it possible to make CCEaseOut/CCEaseIn with CCSequence ? Here is my code :

[player runAction:[CCSequence actions:[CCDelayTime actionWithDuration:1],
                            [CCFadeTo actionWithDuration:2 opacity:255],
                            [CCDelayTime actionWithDuration:1],
                            [CCFadeTo actionWithDuration:7 opacity:0],nil]]; 

提前感谢

推荐答案

您可以对大多数操作使用CCEase *,但不能直接使用CCSequence操作。然而,您可以将序列中的某个操作包含到CCEase *操作中。

You can use CCEase* with most actions but not the CCSequence action directly. You can however wrap one of the actions inside the sequence into a CCEase* action.

这篇关于使用CCEaseOut和CCSequence?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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