Jump to content

FixedToCamera TileMap Issue


AntiJcup
 Share

Recommended Posts

Hey guys,

 

I am new to the forum and rather new to phaser but I am stuck on a rather interesting bug. I am using a tilemap for my UI and like any other UI I want it to follow the camera. I use objects for buttons and then any graphics backgrounds use tiles. Well when I set the tilemap.fixedToCamera to true nothing happens. But when make each layer into a group and set the fixedToCamera to true it starts to follow the camera but not properly it starts moving off the camera in the direction the camera is moving.

 

The first image shows when the games starts.(The camera follows the blue box)

post-15631-0-17607600-1437955431.png

 

The second image shows when I moved the camera to the right (The gray box is the placeholder but it consists of tiles)

post-15631-0-23383700-1437955432.png

 

If I don't set the fixedToCamera to true the gray box starts sliding off to the left.

 

I am in chrome 44

 

If this isn't doable that is fine just liked the idea of being able to use tiles.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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