Im trying to make a button that can switch between two images for example a play button that holds a play image when its not clicked then turns to a pause button when clicked, I need to be able to switch the image of the button and it will stay that way until the user clicks it again then it shall switch back to the other image.
so for example
play image to start
then play is clicked
then button switches to pause image
the button is clicked
the button is switched to play image again
start loop over.