Skip to content

Tilesprite width / height not respected one dimension is zero #6857

Closed
jonesrussell/nishman
#6
@GaryStanton

Description

@GaryStanton

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

https://phaser.io/sandbox/4nryhSBH

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions