Kir13y Posted May 25, 2015 Share Posted May 25, 2015 Im trying to load in a map made in tiled (.json) into phaser. The map seems to load ok but the tileset loads really weirdly. Some tiles that are supposed to be a top tile load as the tile to the left of them and some load correctly. Some will load as a white box and some load as the one below them. I have no idea what is wrong. Screenshots:From Phaser:From Phaser: From Tiled: Thanks in advance! Link to comment Share on other sites More sharing options...
Kir13y Posted May 27, 2015 Author Share Posted May 27, 2015 Update: The tiles seem to shift to the tile that is 32px over. Can anyone help?? Link to comment Share on other sites More sharing options...
winspeednl Posted June 8, 2015 Share Posted June 8, 2015 Can you post the code how you load the map? EDIT:what i use:Preload: game.load.tilemap("level1", "level1.json", null, Phaser.Tilemap.TILED_JSON);Create: map = game.add.tilemap("level1"); map.addTilesetImage("rock"); map.addTilesetImage("crate"); map.addTilesetImage("lava"); map.setCollisionBetween(1,4); levelLayer = map.createLayer("level");Update: game.physics.arcade.collide(player, levelLayer, movePlayer); //Player is a sprite - movePlayer if the player touches the layer the player can move Link to comment Share on other sites More sharing options...
Kir13y Posted June 8, 2015 Author Share Posted June 8, 2015 I actually fixed this problem. My version of phaser was old. Thanks for responding though! winspeednl 1 Link to comment Share on other sites More sharing options...
winspeednl Posted June 8, 2015 Share Posted June 8, 2015 haha okay Link to comment Share on other sites More sharing options...
Recommended Posts