Sign in to follow this  

TileMap doesn't show correctly

Recommended Posts

Hi!, i use tiled for create a map, but when i try show the map in the game, this doesn't show correctly

(the map in tiled)


And the map in the game:


The main file:

class Main extends Phaser.State {

	create() {;, 0, 'Sky'); ='Tilemap');'Tiles', 'Tileset');

		this.layer ='Platforms');
		this.wrap = true; 
		this.cursors =;


	update() {
		if (this.cursors.left.isDown)
    { -= 8;
    else if (this.cursors.right.isDown)
    { += 8;

    if (this.cursors.up.isDown)
    { -= 8;
    else if (this.cursors.down.isDown)
    { += 8;


export default Main;

Any idea or solution?(sorry for my bad english)

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.