Jump to content

Bug? with Phaser Isometric plugin


cloakedninjas
 Share

Recommended Posts

I've been playing about with the isometric plugin and have run into some rendering issue with my tiles, I wonder if anyone else has had this issue:

 

 fR85r6g.png

 

This is a screenshot of my map inside Photoshop. The top half is in-game with debug bounds turned on, the lower is without debug

 

The two tiles on their own are the original assets aligned alongside with guides. The original assets at 64 * 32

 

I've worked off the code from the homepage: http://rotates.org/phaser/iso/test.js but my tilesize is 64 instead of 32

 

Wall tiles are also affected:

 

5zsu6oZ.png

 

Why does my texture overflow the bounding box?

Link to comment
Share on other sites

The iso plug-in makes a rough guess at the size of the tile based on the size of the sprite - it may not get it exactly right. The bounds are automatically generated for topological sorting and aren't usually that important. I'd suggest just tweaking your positioning (i.e. increasing the size of your grid) in your code until the tiles are separated correctly like they are in Photoshop.

 

Also, just so you know, when working with physics and bodies you can specify the size of the body precisely with body.setSize(). Hope this helps!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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