Jump to content

Tiled Map and Camera


Recommended Posts

Hi everyone,

I'm creating a little platform, and I use Tiled to create levels. I tried to use a camera in order to follow the player, but that was the result.

post-13078-0-20938500-1423778386.png

(Samus is only a placeholder, I'm a Metroid fan ;) )

I'm not using Phaser physics, I've implemented all the collision myself. After the creation of the map, I setup the camera:

currentMap = this.game.add.tilemap(mapName);// ... here I create Layers ...groundLayer.resizeWorld();this.game.camera.follow(player);

What could that be?
Thank you in advance!

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.

×
×
  • Create New...