TilemapLayer#setScale()

setScale(xScale, yScale)

This method will set the scale of the tilemap as well as update the underlying block data of this layer.

Parameters
Name Type Argument Default Description
xScale number <optional>
1

The scale factor along the X-plane

yScale number <optional>

The scale factor along the Y-plane

Source code: tilemap/TilemapLayer.js (Line 712)
doc_phaser
2017-02-14 11:16:36
Comments
Leave a Comment

Please login to continue.