Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

I need help with using tilemaps


bobonthenet
 Share

Recommended Posts

I am trying to use this example but with my own tilemap http://phaser.io/examples/v2/games/starstruck

Right 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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...