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

Newb - Isometric Issue Rendering correct size


NZMikey
 Share

Recommended Posts

Hey all,  new to HTML5 Game Devs and Phaser, so sorry for the noob question.

 

Basically whats happening, is I have a flat tiles (Loaded via atlasJSONHash) with the following as an example:

"grass1": {"frame": {"x": 1, "y": 1, "w": 63, "h": 64},"rotated": false,"trimmed": false,"spriteSourceSize": {"x": 0, "y": 0, "w": 63, "h": 64},"sourceSize": {"w": 63, "h": 64}},

The issue I have is that the height value is required to not trim the flat tile (Which I have as a radian of 0.785398163, with the projectionAngle set to the same). But, this in turn doesn't seem to let me render at the correct tile size (Image attached).  The tile size on the tilemap is 63wx64d, but i couldnt find a way to make the tile render at this size (As per image, it seems to be rendering at half that size.)

08QVgsW.jpg

 

(This is from debug.body)

 

Basically what I am trying to get is the following:

GoGKaJI.jpg

 

 

If anyone could help with this, that would be great thanks!

 

I have been through Phasers and Isometrics API docs, but can't seem to find what I am looking for.

 

Any help on this would be appreciated!

Link to comment
Share on other sites

  • 1 month later...
 Share

  • Recently Browsing   0 members

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