Simple Button by JoelJ29th Dec 2003 21:51
|
---|
Summary makes a button at the given location Description call it like this: Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com function button(x, y, xsize, ysize, image_up, image_down, changing_var#, move, mousex, mousey) if mousex > x and mousex < x + xsize and mousey > y and mousey < y + ysize paste image image_up, x, y if mouseclick() = 1 paste image image_down, x, y changing_var# = changing_var# + move endif else paste image image_up, x, y endif endfunction changing_var# |