Can you attach a basic TMX file? I’ll give this code a shot in my app.
EDIT: On my initial test (without a valid file), I’m getting the same error in Web Inspector:
Uncaught TypeError: Cannot call method 'create' of undefined
It’s point at Line 22 in my code:
map = cc.TMXTiledMap.create('./Resources/test.tmx');
Perhaps this requires the instantiation with new? Example:
map = new cc.TMXTiledMap('./Resources/test.tmx');
I get a different error when I try that, but I’m not sure whether the error is because test.tmx doesn’t exist, or something else.