Hashasm Posted January 13, 2017 Share Posted January 13, 2017 Hi i am trying to move my map by using panning from mouse can someone help me . Quote Link to comment Share on other sites More sharing options...
obiot Posted January 16, 2017 Share Posted January 16, 2017 it's easy, you can use the viewport move and moveTo function to change the viewport position http://melonjs.github.io/melonJS/docs/me.Viewport.html#move http://melonjs.github.io/melonJS/docs/me.Viewport.html#moveTo it's really just about the same code you would write to drag an object with the mouse, expect that you move the viewport Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.