ccerqadfe Posted April 18, 2020 Share Posted April 18, 2020 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 this.toggle.setTexture("pause") } else { this.switch = true this.toggle.setTexture('play') } }) Thank You. Link to comment Share on other sites More sharing options...
Recommended Posts