Sairahcaz

how to draw and move the map without a character and no viewport follow on 4.1?

Recommended Posts

Hi I'm very new to melonJS.

I removed the character (and so the viewport follow call) of the isometric_rpg example, cause I dont need it.
I want to move the map with mouse panning.
All the answers I found and the tutorials has a character, so these answers dont realy helped me.

Now when I load the example it gets blank after to load screen. 

But "me.levelDirector.loadLevel("isometric");" is called in the playscreen object.
It think it has something to do with a update function, and sure somewhere I had to put the viewport.move(), but I dont realy know how and where.

Thanks for help!

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.