Jump to content

Scale tileSprite to screen's vertical height?


Recommended Posts

Hi all,

I'm using Phaser CE (latest edition), and looking to create a responsive game. At the moment, my canvas and sprites respond well to the window being resized whilst I use:

game.scale.scaleMode = Phaser.ScaleManager.RESIZE;

However, my scrolling tileSprite repeats itself on a big enough screen (see here: https://imgur.com/cuX4yir). Is it possible to have the tileSprite's height fill the screen, and the width automatically resize accordingly?



Link to comment
Share on other sites

  • 1 month later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...