i made a funtion to make buttons for me. it is awsome. but i have one problem.
function _button(xpos,ypos,xs,ys,nimage,oimage,osprite,target$)
paste image nimage,xpos,ypos,nimage
if mousex() >= xpos and mousex() <= (xpos + xs) and mousey() >= ypos and mousey() <= (ypos + ys)
sprite osprite,xpos,ypos,oimage
if mouseclick() = 1
gosub target$
endif
else
sprite osprite,700,700,oimage
endif
endfunction
the target. i need a way to define where i want it to go when i press the button. i dont think gosub will work to great, if i get it to work. any ideas?
<{^_^<}