How to zoom in and out the full tilemap from center in phaser?

Recommended Posts

I am developing a game where I need to zoom in entire map also I can be able zoom out. I have created a tilemap using tiled software and rendered it using phaser.js. How can I add this function to my game?

Share this post

Link to post
Share on other sites

you can also put your stuff in a group - and you scale that group.

so you create a group by doing ``

then you put your sprites in it. then that group you set it's scale, your sprites will mass zoom in and out.

Note that you can do this in the too. but what's nice about having each group is that for example yo have a texts or a minimap and you don't want those included in the zooming process.

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.

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.