Shex

Scale a tilesprite

Recommended Posts

Hi

In Phaser2, it was possible to scale a TileSprite so the sprite inside was scaled while being tiled. It doesn't seem to be there anymore in Phase3. Is there a way to achieve this?

Thanks!

Share this post


Link to post
Share on other sites

Hi Vincent

As I understand, the TileSprite works like a frame. You set a size (width, height) and you set a position on screen, then the framework will render a sprite inside that frame until it fills it (a bit like a background image in CSS). What I'm trying to do is being able to scale the sprite it is using to fill the frame. For exemple, using a 128x128 image and scale it to 256x256 before using it to fill the frame. On the project I am working on, I have a constraint about the base image file so it would save me a lot of trouble to be able to scale it to a certain size.

Share this post


Link to post
Share on other sites

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.

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

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.