-
Creator 版本:1.7.0
-
目标平台:
-
概率:30%。
-
重现方式:
1、新建一个holleWord项目。
2、修改HelloWorld脚本。斜体的是改动代码。
cc.Class({
extends: cc.Component,properties: {
label: {
default: null,
type: cc.Label
},
// defaults, set visually when attaching this script to the Canvas
text: ‘Hello, World!’
},// use this for initialization
onLoad: function () {
this.label.string = this.text;
this.cocos = this.node.getChildByName(“cocos”);
},// called every frame
update: function (dt) {
var ran = Math.random();
_ if(ran>0.5){_
_ this.cocos.runAction(cc.flipX(true));_
_ }else{_
_ this.cocos.runAction(cc.flipX(false)); _
_ }_},
});
目标平台:模拟器,安卓。
请用真机测试下,模拟器的崩溃是很常见的我们目前还没人力去解决。