var JetSprite = cc.Sprite.extend({
_currentRotation:0,
ctor:function(){
this._super();
this.initWithFile(“images/jet.png”);
}
});
为什么运行的时候提示this.initWithFile is not a function
请问要如何调用initWithFile
var JetSprite = cc.Sprite.extend({
_currentRotation:0,
ctor:function(){
this._super();
this.initWithFile(“images/jet.png”);
}
});
为什么运行的时候提示this.initWithFile is not a function
请问要如何调用initWithFile
改成this.init(“images/jet.png”);试试