greendot Posted July 11, 2018 Share Posted July 11, 2018 Hi everyone, I'm trying to add a TileSprite using a SVG file but it's not displaying properly - it only displays part of it repeatedly. It works fine if I use a non-SVG file, ie, JPG, PNG. Any ideas if I can use a SVG file for TileSprite? Link to comment Share on other sites More sharing options...
prob Posted July 11, 2018 Share Posted July 11, 2018 I've just started testing SVGs in Phaser 3, and they can be a little wonky. One thing to check first is to make sure the SVG has a height and width defined in the XML. Link to comment Share on other sites More sharing options...
greendot Posted July 12, 2018 Author Share Posted July 12, 2018 Thanks. I checked and the SVG file has width and height defined in its XML. I am trying to have my TileSprite to auto scale depending on the device size so I thought a SVG file would be the proper way to go. Any other recommendation? Link to comment Share on other sites More sharing options...
Recommended Posts