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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.