#define scr_button //You can remove this line and add "scr_button_var1=false" in the create event. if (variable_local_exists("scr_button_var1")=false) then scr_button_var1=false //The script made to preform as all "real" buttons in windows, like the X-button at the right upper corner. //Explore it! if (mouse_check_button_released(mb_left)) { scr_button_var1=false } if (position_meeting(mouse_x,mouse_y,self)) { if (mouse_check_button_pressed(mb_left)) then scr_button_var1=true if (scr_button_var1=true) then image_index=1 else image_index=2 if (mouse_check_button(mb_left) and scr_button_var1=false) then image_index=0 } else { image_index=0 }