//创建标签
var helloLabel = cc.LabelTTF.create("Hello World", "Arial", );
//设置位置
helloLabel.setPosition(cc.p(,));
//添加到layer
this.addChild(helloLabel, ); //改变颜色,不可reverse var hurtColor = cc.TintTo.create(2.5,-,,); //移动并同时改变颜色 helloLabel.runAction(cc.Spawn.create(cc.MoveBy.create(2.5, cc.p(0, 300 - 40)),
hurtColor)); //改变颜色并回滚颜色
var action2 = cc.TintBy.create(, -, , );
var action2Back = action2.reverse();
helloLabel.runAction(cc.Sequence.create(action2, action2Back));
相关文章
- 解决Oracle ORA-01033: ORACLE initialization or shutdown in progress错误 和 ORA-01589错误 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项
- MySQL索引的使用方式和缺点
- Python基础——判断和循环
- 「PKUSC2018」最大前缀和
- 76、android:supportsRtl 和 android:layout_marginEnd
- python中的协程:greenlet和gevent
- 认识和选用常用的几种 GPRS 模块(转)
- websphere内存溢出,手动导出was的phd和javacore文件
- File类和RandomAccessFile类
- nor flash 和nand flash 的区别