Jump to content

Tiled Map and Camera


FoffyStudio
 Share

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 comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...