How do i load object to the tile map?
Posted: Tue Oct 01, 2013 9:11 am
Hi,
I would like to know how can i attach object to the tile map using IgeTiledComponent? What i mean is to include the object inside my map.js file.
From my understanding, the above code is use for cellsheet. What if i have and object and i would like to include it( such as building)? how do i code it inside the map.js?
Regards,
I would like to know how can i attach object to the tile map using IgeTiledComponent? What i mean is to include the object inside my map.js file.
Code: Select all
var map2 = { "height":100,
"layers":[
{
"data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
"height":100,
"name":"GrassLine",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":100,
"x":0,
"y":0
},
Regards,