you could do a type of code. im not sure if you are here, but ill try to get you going. im gonna pretend you dont know anything cause i dont know how much you know
`lets say icon1 is your icon for your sprite
mx=mouse position x()
my=mouse position y()
`it think its "mouse position x()"...
if mousex()>640 and mousex()<600 and mousey()>20 and mousey()<50 and mouseclick()=1
icon1=1
endif
if mouseclick()=1 and icon1=1
sprite x,mx,my,y
endif
if mouselcick()=0
icon1=0
endif
im not quite sure if that will help, but try to figure it out and stuff. if you need more help, i might be back
dang im hot...