Hi,
Can u show me how to mount them?
Regards,
Search found 53 matches
- Mon Oct 07, 2013 2:10 am
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
- Thu Oct 03, 2013 2:27 am
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
Re: How do i load object to the tile map?
Hi, Im getting the error undefined variable whenever i try to retrieve 'layersById.SpawnPoint.objects. loadMap: function () { var self = this; ige.tiled.loadJson(map1, function (layerArray, layersById){ self.log('Success Map Load'); var newobj, objClass, object, sceneryClasses, tileMap, x, y, _i, _l...
- Wed Oct 02, 2013 12:29 pm
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
Re: How do i load object to the tile map?
Hi, And another thing rob, i could not call the layersById.SpawnPoints like i could on layersById.Dirtlayer. It will give me undefined value. Below is the code which i try to call it. ige.tiled.loadJson(map1, function (layerArray, layersById){ self.log('Success Map Load'); var newObj, objClass, obje...
- Wed Oct 02, 2013 12:10 pm
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
Re: How do i load object to the tile map?
Hi rob, Thanks for your help. But i do get an error when i include my object group as u suggested. Below is my map var map1 = { "height":100, "layers":[ { "height":20, "name": "SpawnPoints", "objects": [ { "height":128, "name...
- Wed Oct 02, 2013 11:46 am
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
Re: How do i load object to the tile map?
Hi, Sorry i really dont understand how u do it? Below is my tile map file which will load 10x10 tile. How do i insert the layer object in here? Or do i need to create another map just for the layer object? var map1 = { "height":100, "layers":[ { "data":[ 1, 1, 1, 1, 1, ...
- Wed Oct 02, 2013 10:52 am
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
Re: How do i load object to the tile map?
Can u show me how u do it? How u mount it to your backgroundScene? Do u load the object layer same as the tile layer? Do you load the object layer separetly or together with the tile layer? And do you do the same in both client and server?
Regards,
Regards,
- Wed Oct 02, 2013 10:46 am
- Forum: HTML5/Web Engines
- Topic: How the server load tiled?
- Replies: -1
- Views: 454
How the server load tiled?
Hi, From the example 13.7 server-load-tiled, i see that u define tiled component in both the client and server. So i want to know what do u mean by the server load tiled if both is loading the same way. I thought the server will load the tile and stream it to the client. So how should i use this com...
- Tue Oct 01, 2013 9:11 am
- Forum: HTML5/Web Engines
- Topic: How do i load object to the tile map?
- Replies: -1
- Views: 1327
How do i load object to the tile map?
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. 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, ...
- Tue Oct 01, 2013 2:07 am
- Forum: HTML5/Web Engines
- Topic: How to use IgePoint?
- Replies: -1
- Views: 497
Re: How to use IgePoint?
Hi,
Thanks i got it.
Regards,
Thanks i got it.
Code: Select all
var tiles = this.overTiles(), playerReachDoor = false;
var tilesIso = new IgePoint(tiles[0].x , tiles[0].y , 0).toIso();
this.occupyTile(tilesIso.x, tilesIso.y , 1 , 1);
- Mon Sep 30, 2013 8:46 am
- Forum: HTML5/Web Engines
- Topic: How to use IgePoint?
- Replies: -1
- Views: 497
Re: How to use IgePoint?
hi, im aware of the ._translate can use the .iso() function. But how do i convert the overTiles() method to use the .iso() function too. Below are the code what im trying to do. var tiles = this.overTiles(), playerReachDoor = false; var currentPosition = this._translate; //console.log('Current Posit...