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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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