Follow and callFunc.
来源:互联网 发布:linux 完全关闭安全狗 编辑:程序博客网 时间:2024/05/22 00:28
Sprite *sprite1 = Sprite::create("person/poster_char_xiaohai2.png");sprite1->setScale(0.5f);addChild(sprite1, 1, 1);sprite1->setPosition(0, 0);ActionInterval *action1 = MoveTo::create(3.0f, ccp(visibleSize.width, visibleSize.height));ActionInstant *func = CCCallFuncND::create(this, SEL_CallFuncND(&ActionTest::callBackFunc),(void*)10);Follow *action_follow = Follow::create(sprite1, Rect::ZERO);sprite1->runAction(Sequence::create(action1,func,NULL));this->runAction(action_follow);}void ActionTest::callBackFunc(Node *pSender,void *data){CCLog("every thing is ok.");this->stopAllActions();Sprite *person = (Sprite*)(this->getChildByTag(1));person->runAction(MoveTo::create(2.0f, ccp(100, 100)));}
0 0
- Follow and callFunc.
- (转载)First and Follow Sets(编译原理)
- LINQ to SQL and Disconnected Entities Follow-up
- #inception# Follow Your Heart and Persue Your Dream
- CallFunc的创建
- cc.CallFunc()的用法
- cocos2d-js callFunc传参
- cocos2d-x 3.x CallFunc
- cocos2d js callfunc参数问题
- Follow The Du Lala To Carring Gucci Women’s Handbags And Brands
- java.lang.IllegalArgumentException: AppIndex: The URI host must match the package name and follow th
- The URI host must match the package name and follow the format
- java.lang.IllegalArgumentException: AppIndex: The URI scheme must be 'android-app' and follow the fo
- follow me
- Smooth Follow
- Unity3D follow.
- 使用C++方式解决CallFunc创建
- cocos2d-js 的 cc.callFunc 参数
- 游戏外挂技术
- struts2实现下载功能
- Redis千万级的数据量的性能测试
- css设置细线表格
- ubuntu1404安装搜狗输入法后出现黑框的问题
- Follow and callFunc.
- Python下调用json.dumps中文显示问题解决办法
- tyvj1086 Elevator
- CGRectInset与CGRectOffset结构体的应用
- HDU 1534 Schedule Problem 差分约束
- css三角形滴原理
- eclipse for c++设置汇总
- IOS环境搭建与开发入门-------------------cocos2d-x 3.0正式版本(7.8)
- 活水渠 - 云影院之云时代看片全攻略