Jump to content

Why are my background tiles blinking while moving?


Recommended Posts

Here is the problem: https://giphy.com/gifs/X8bT5QMIHENZ2gtqwL

When I jump the background tiles flash or blink. I can't figure out why. I've tried different tiles for background all seemed to do the same.
Only jumping and falling makes this blinking, when go left or right its not happening.

Is it a problem with my tiles? I'm using these tiles https://openpixelproject.itch.io/opp2017castle

let game = new Phaser.Game({
    type: Phaser.CANVAS,
// adding layers
        this.map = this.make.tilemap({ key: 'map' });
        var groundTiles = this.map.addTilesetImage('MapDetails','tiles');
        this.groundLayer3 = this.map.createStaticLayer('Background', groundTiles,0,0);
        this.groundLayer = this.map.createStaticLayer('World', groundTiles,0,0);
        this.map.setCollisionByProperty({collides: true});
        this.layer1 = this.map.createStaticLayer('Flooring', groundTiles,0,0);
        this.groundLayer2 = this.map.createStaticLayer('Lamps', groundTiles,0,0);
        this.groundLayer5 = this.map.createStaticLayer('Props', groundTiles,0,0);


my tiled layers:



Link to comment
Share on other sites


  • Recently Browsing   0 members

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