Skip to content

Spine Game object above an ellipse in the displayList makes every sprite blue #5493

@EmilSV

Description

@EmilSV

Version

  • Phaser Version: 3.51.0
  • Operating system: Windows

Description

if a spine Game object is above an ellipse game object in the displayList every sprite/image becomes purely blue

Example Test Code

class Example extends Phaser.Scene
{
    constructor ()
    {
        super({
            pack: {
                files: [
                    { type: 'scenePlugin', key: 'SpinePlugin', url: 'plugins/3.8.95/SpinePluginDebug.js', sceneKey: 'spine' }
                ]
            }
        });
    }

    preload ()
    {
        this.load.image('logo', 'assets/sprites/phaser.png');

        this.load.setPath('assets/spine/3.8/demos/');

        this.load.spine('set1', 'demos.json', [ 'atlas1.atlas' ], true);
    }

    create ()
    {
        this.add.image(0, 0, 'logo').setOrigin(0);

        const boy = this.add.spine(460, 600, 'set1.spineboy', 'idle', true);
        const circle = this.add.ellipse(130, 200, 250, 250, 0xffffff);

        this.sys.displayList.bringToTop(boy);
    }
}

const config = {
    type: Phaser.WEBGL,
    parent: 'phaser-example',
    width: 800,
    height: 600,
    backgroundColor: '#2d2d2d',
    scene: Example
};

const game = new Phaser.Game(config);

blue_bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 SpineAn issue arising from the Spine runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions