Closed
Description
Version
- Phaser Version: 3.80.0
- Operating system: Windows 10
- Browser: all
Description
If you set a tilesprite with a zero width or height, and specify the other dimension - while it does take the dimensions from the texture, as it should, it doesn't tile the sprite to the other dimension.
So for example, if I have a texture that is 100x100px, I would expect the following code to result in a tile sprite that is 100px wide and 500px high, with my texture tiled five times vertically:
this.add.tileSprite(0, 0, 0, 500, 'my100pxTexture')
However, it simply results in a tilesprite of 100x100px, matching the dimensions of the texture.
Example Test Code
Metadata
Metadata
Assignees
Labels
No labels