Heres something i cooked up quickly (only tested a little).
REMSTART
Quick Drag and Drop
REMEND
` Screen Setup
SYNC ON : SYNC RATE 30
CENTER TEXT SCREEN WIDTH () / 2, SCREEN HEIGHT() / 2, "Loading Media"
SYNC : SYNC
` Make an Image
FOR x = 0 to 100
FOR y = 0 to 100
dot x, y, RGB(RND(255), RND(255), RND(255))
NEXT y
NEXT x
GET IMAGE 1, 0, 0, 100, 100
` Sprite Variables
sX = SCREEN WIDTH() / 2
sY = SCREEN HEIGHT () / 2
` Turn the Image into a Sprite
SPRITE 1, sX, sY, 1
` Clear Screen so we grab nothing in our Temporary Sprite
` Create a temporary sprite
GET IMAGE 2, 0, 0, 1, 1
SPRITE 2, sX, sY, 2
` Offet our Sprite
OFFSET SPRITE 1, SPRITE WIDTH(1) / 2, SPRITE HEIGHT(1) / 2
DO
IF MOUSECLICK()
IF SPRITE HIT(1,2)
sX = MOUSEX()
sY = MOUSEY()
ENDIF
ENDIF
` Set Sprite Position (Original Sprite)
SPRITE 1, sX, sY, 1
OFFSET SPRITE 1, SPRITE WIDTH(1) / 2, SPRITE HEIGHT(1) / 2
` Set Sprite Position (Temporary Sprite)
SPRITE 2, MOUSEX(), MOUSEY(), 2
SYNC
LOOP
Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org