Hello, i create 3 Layer (grass - under player) (obstacles - colide with player) (extra- above player), but all Layer is under player, how to set “extra” Layer above player?
All Layer is created from tileset.
var grass = map.createStaticLayer('main', tiles, 0, 0);
var obstacles = map.createStaticLayer('colide', tiles, 0, 0);
var extra = map.createStaticLayer('extra', tiles, 0, 0);
this.player = this.physics.add.sprite(50, 100, 'player', 6);
this.player.setCollideWorldBounds(true);
this.physics.add.collider(this.player, obstacles);