Jump to content

zooming with tilemaps

Recommended Posts

Hello again!

I am experiencing something similar to this: 

When a project is first made, the zoom is defaulted I believe to be  value of 1.

If I plan on having zooms be a part of the game I'm making (with tiles), is the best course of action to get rid of this sort of rendering problem by setting the zoom default to be something of a different value such as 10 or some other arbitrary amount?

If I plan on doing this, I have to adjust everything, such as player speeds and other physics related things I already have programmed into my game.

Was wondering if anyone else had a solution to this problem.  I have tried roundpixels and it's not fixing the problem once the zoom factor is scaled to something sub 1 level with my current scheme.

Link to post
Share on other sites

As far as I can tell this isn't a zoom issue. This sounds like typical tile bleed which is an issue with any game that runs tilemaps. I have run into this and I have found that Tile Extruder fixes the problem perfectly.

It's a little extra work on your end but should do the job. It's entirely possible that tile bleed will get fixed in a future update of Phaser 3 as I don't think it was an issue in Phaser 2.

Link to post
Share on other sites

Thank you for the resource, but am having issues with understanding how to achieve the above.

Just so I understand, I have to edit each and every tile in the tileset image itself?  Say my tiles are 16x16, do I make the image for each tile 17x17?  Or do I not need to worry about any of this and just run the npm package on my original tilemap image? (my images of tiles are all located on the same file, and aren't really given any extra margins currently).


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...