Quote: "The target sprite number, and if a target sprite has not been specified and a value of zero has been used, this command will return the sprite number of any sprite overlapping it
"
sample-code
cls rgb(255,0,0)
print " man "
get image 9,0,0,64,64,1
save image "man.bmp",9
cls
load image "man.bmp",1
sprite 1,100,100,1 ` mouse-cursor
sprite 2,200,200,1
sprite 3,300,300,1
do
sprite 1,mousex(),mousey(),1
num=sprite collision(1,0)
if num>0
set cursor 100, 100
print "we have it sprite number "+str$(num)
endif
loop
end