pstrejczek Posted July 22, 2018 Share Posted July 22, 2018 I have a button to enable/disable sound. I have two images prepared for that button. One when the sound is enabled and one when it is disabled. What would be the proper way to change the texture after the button click? Is this possible? Quote Link to comment Share on other sites More sharing options...
pstrejczek Posted July 22, 2018 Author Share Posted July 22, 2018 Answering myself ... I see there is icon button, and it should do the trick. Quote Link to comment Share on other sites More sharing options...
enpu Posted July 22, 2018 Share Posted July 22, 2018 You can also change sprite texture with setTexture function: https://www.panda2.io/examples#sprite-setTexture pstrejczek 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.