Its actually not as hard as one might think. You just need to use the Sprite X and Sprite Y commands.
box 0,0,20,20
get image 1,0,0,20,20
sync on
sync rate 100
xc=1
x=100
do
sprite 1,x,100,1
set sprite diffuse 1,255,0,0
x=x+xc
if x<10
xc=1
endif
if x>300
xc=-1
endif
if spacekey()=1
sprite 2,sprite x(1),sprite y(1),1
set sprite diffuse 2,128,0,0
endif
sync
loop
The above code will have a red box moving around, and when you tap space, another red box should appear were the first just was. I havnt tested it though, i just wrote it here. Best of luck