10 years ago by DanBridge
Hi,
I'm using the drop example to learn about procedurally generating maps.
I've hit a problem trying to change the tile image (e.g. from 1 to 2 in this.map ) as it also changes the collision map value, which changes the collision map value to 2, which gives a sloping collision tile
I'm sure I'm doing something silly but can't see it, any help would be really appreciated :)
Thanks
Dan
e.g. it uses this.map which is that passed to the collision and the background
this.collisionMap = new ig.CollisionMap( 16, this.map );
this.backgroundMaps.push( new ig.BackgroundMap(16, this.map, 'media/tiles.png' ) );
I'm using the drop example to learn about procedurally generating maps.
I've hit a problem trying to change the tile image (e.g. from 1 to 2 in this.map ) as it also changes the collision map value, which changes the collision map value to 2, which gives a sloping collision tile
I'm sure I'm doing something silly but can't see it, any help would be really appreciated :)
Thanks
Dan
e.g. it uses this.map which is that passed to the collision and the background
this.collisionMap = new ig.CollisionMap( 16, this.map );
this.backgroundMaps.push( new ig.BackgroundMap(16, this.map, 'media/tiles.png' ) );