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

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.