bobonthenet Posted September 9, 2015 Share Posted September 9, 2015 I am trying to use this example but with my own tilemap http://phaser.io/examples/v2/games/starstruckRight now I am just trying to get the map to show on the screen but I'm just getting a white page. I've just drawn a really simple map using Tiled Map Editor. Here is what I have done. https://github.com/bobonthenet/knightfight Can someone help me with why this isn't working? Link to comment Share on other sites More sharing options...
bobonthenet Posted September 11, 2015 Author Share Posted September 11, 2015 I figured out what was going on. There was an extra row of pixels in my tile image and I hadn't done the math right. I re-cropped the image so that each tile was the same size with a pixel space in between and an outer margin of 1 pixel around the entire tileset. I figured this out by opening the image in MS paint, getting the total image size, using the select tool to get the tile sizes and make sure they were all the same, then getting the calculator to do the math and make sure it calculated correctly. Link to comment Share on other sites More sharing options...
Recommended Posts