englercj / phaser-tiled

A tilemap implementation for phaser focusing on large complex maps built with the Tiled Editor.
MIT License
290 stars 31 forks source link

The scale was not being reset when resetting tiles. #63

Closed JimVliet closed 8 years ago

JimVliet commented 8 years ago

This could cause some weird texture glitches.

JimVliet commented 8 years ago

Example: You can see that the left box is flipped: http://prntscr.com/aq6w11 Now once it goes out the camera view and it gets reused: http://prntscr.com/aq6wdi It gets reused for the chair as seen here: http://prntscr.com/aq6wx9 The image flips and moves one tile to the left, since the scale is still flipped.

You can see it in action here: http://jimvliet.github.io/HTML5-Game/

JimVliet commented 8 years ago

So I just noticed this was already fixed in this pull request. https://github.com/englercj/phaser-tiled/pull/59 So now it's double fixed. So I recommend reverting my change and keeping the old one.