Open DrDerico opened 7 years ago
https://codepen.io/samme/pen/PjEEjW
There is an example like this (http://phaser.io/examples/v2/tilemaps/dual-view/version=2.7.0.beta2) that positions the layer with x
or y
but it works only in 2.7.0b2 and no versions before or after that.
See also #34 . I wish we had an example (@hexus?).
Added
tileOffset
(Phaser.Point
) property toPhaser.TilemapLayer
. This allows offsetting layer positions in a way that plays well with the camera and Arcade physics. Also, theoffsetx
andoffsety
properties are now read from the layer properties of Tiled maps.
Good idea, I could put one together at some point.
Hi!
Sorry for my English.
This Issue is about rendering TilemapLayer if its cameraOffset.x/y not zero, or if TilemapLayer has width and height less than game's width/height. TilemapLayer crops its rendered image.
I can't make my game with infinite scrolling, because TilemapLayers, that I use, disappear when the camera moves.
Thank you!