Use different image for button made from sprite.js

Hi

I manged to follow the instruction on github to make a button from sprite.js. I was wondering how can I modify the sprite.js file so that the texture assets that attached to sprite.js would change to another image file when the button is clicked.

Thanks

I’ve not looked at sprite.js, so not sure if this will work, but can you not just put the sprite into a variable and change it during the click event?