I'm trying to write a code to change the image of a button....
I want something that if i hit that button it's change it's graphics.....and when i hit that another time it's return to his original image and so on,to simulate a simple "button on","button off" that change if i give him thw input to.
Here's a part of the wrong code:
if mousedown(1) and mx>711 and mx<790 and my>0 and my<17
setscroll=setscroll_on ;swap of the image if i held down the mouse button
endif
I want something that if i hit that button it's change it's graphics.....and when i hit that another time it's return to his original image and so on,to simulate a simple "button on","button off" that change if i give him thw input to.
Here's a part of the wrong code:
if mousedown(1) and mx>711 and mx<790 and my>0 and my<17
setscroll=setscroll_on ;swap of the image if i held down the mouse button
endif