I have problem in loading Tile Map (.tmx) file in html5

Hi,

I have set render mode to default mode(i.e 0).
When i try to load .tmx file it gives error like "Cannot read property ‘mat’ of null ".
When i set render mode to 1 then it works fine.
Am using cocos2d-html5-v2.2.3 version

Can anybody help us?

With best regards, Gurudath

Do you have some class inherit from cc.Node or cc.Sprite, and you forgot add “this._super()” in your class’ ctor?

Hopes to help
David

Thank you for response. I have added “this._super()” in constructor.
I found a solution. I have inherited class from “cc.LayerGradient”. It works fine.

Gurudath