Hello again,
I made a game based upon the tutorial of raywenderlich.com. Today i tried to make an iPhone application, but I wasn’t able to. I’m using cocos2d-html5 2.1.1 and cocos2d-iphone-2.1 .
The problem is:
My game runs fine in the browser, but when I try it in Xcode it says: this.initWithFile is not a function in my PlayerSprite class.
@
var PlayerSprite = cc.Sprite.extend({
//… properties …
ctor:function(characterName, scaling){
this._super();
this.initWithFile(sprite, cc.rect(0,0,31,44));
},
// …other functions
});
@
Am I using an incompatible version of cocos2d-iphone? Am I missing something?
Thank You in advance