I'm trying to make a button which when pressed, changes to a different image and changes a boolean.
Basically theres an on and an off state - if you click the button when its off, it will turn on, and if you click the button when its on, it will turn off. How would I code this?