Jump to content

How to switch out texture in Phaser 3


Recommended Posts

How do you switch out texture in an image object.

I have tried setTexture(),  but images go top of other. I like to have one shown if the image is clicked.

this.toggle.on('pointerdown', () => {
    if (this.switch === true) {
        this.switch = false
    } else {
        this.switch = true

Thank You.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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