I have a little problem. If I open the Web navegator, the first time i load my program with a Tilemap, the timemap no works correctly, but if a reflesh the page, it works…. and work until i close the navegator…. Anybody can help me?
Hi Eduardo. When you load the browser the first time and the tile map doesn’t work, do you see any errors in Web Inspector? (Which browser are you using?)
“Cocos2d-html5-v0.5.0-alpha2 /cocos2d/platform/CCApplication.js:206
function webkitRequestAnimationFrame() { [native code] }”
It is as if the map is not fully charged…. (i sent a image and the map)
I try with others maps build myself with Tiled 0.8.1… (i dont know if the problem is the compress type….)
The code in my program is:
var map = cc.TMXTiledMap.create(mapa_macario);
this.addChild(map,FONDOP,FONDO);
And the resource file is:
var mapa_macario = “Resources/TileMaps/macario11.tmx”;
var g_ressources = [
{type:“tmx”, src:mapa_macario}
];
Edu
Erik Oros wrote:
Hi Eduardo. When you load the browser the first time and the tile map doesn’t work, do you see any errors in Web Inspector? (Which browser are you using?)
Hi Eduardo. I’ll give this a try in my app and will let you know. Just for reference, are you using the latest source code from Github or the packaged 0.5.0 Alpha 2 download from the main page?
Hi Eduardo. I’ll give this a try in my app and will let you know. Just for reference, are you using the latest source code from Github or the packaged 0.5.0 Alpha 2 download from the main page?
Hi Erik
Yes, i’m using the last release, but i donwload from http://www.cocos2d-x.org
(i think it’s the since)