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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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