CCArmature动画播放完后执行回调函数的方法
2014-03-07 17:28
211 查看
m_armSpring = CCArmature::create("tanhuang");
m_armSpring->getAnimation()->setMovementEventCallFunc(this,movementEvent_selector(PaySpringLayer::StopArmature));
void PaySpringLayer::StopArmature( cocos2d::extension::CCArmature *armature, MovementEventType movementType, const char *movementID )
{
if (movementType == COMPLETE)
{
........
}
}
m_armSpring->getAnimation()->setMovementEventCallFunc(this,movementEvent_selector(PaySpringLayer::StopArmature));
void PaySpringLayer::StopArmature( cocos2d::extension::CCArmature *armature, MovementEventType movementType, const char *movementID )
{
if (movementType == COMPLETE)
{
........
}
}
相关文章推荐
- jQuery动画出现连续触发、滞后反复执行的解决方法
- Delphi播放Gif和Flash动画的方法
- animate() 方法执行 CSS 属性集的自定义动画。
- 解决cocos2dx CCArmature动画在部分型号的安卓手机上播放不正常的问题
- 一个imageview播放动画,如此简单(包含imageview的所有属性,方法)
- cocos2d播放动画完后回到第一帧的图的方法
- ViewPager自动播放或者点击按钮切换setCurrentItem方法动画问题
- android播放开机动画方法
- 22.调用delay()方法延时执行动画效果
- 播放动画的两种方法
- 关于Unity3D动画播放时出现“抽搐”现象的解决方法
- 【Unity实用小方法】开启游戏时播放一段动画
- Spine动画在Cocos2d-x中,多动画切换播放出现残影的解决方法
- iOS - UIImageView常见使用方法和多图动画播放
- ajax请求后台方法成功但是不执行回调函数
- C#下Socket对象的BeginReceive方法,执行后竟然不调用AsyncCallback里的回调函数
- cocos2dx 几个精灵依照顺序播放动画解决方法
- 易语言设置在图片框中播放GIF动画的方法
- ajax中的post方法中回调函数不执行的问题
- 关于unity中spine动画切换时有残影或者动画播放不正确的解决方法