To find the x and y of a sprite use the commands "sprite x(spritenumber)" and "sprite y(spritenumber)".
` Change to a random color
ink rgb(rnd(255),rnd(255),rnd(255)),0
` Make a box with the color above
box 0,0,75,75
` Change the color to white
ink rgb(255,255,255),0
` Add text
center text 37,27,"Image 1"
` Grab image
get image 1,0,0,75,75
` Clear the screen
cls
` Make one sprite at a random location
sprite 1,rnd(640),rnd(480),1
` Get the sprites x and y coordinates
x=sprite x(1)
y=sprite y(1)
` Print the coordinates
text 0,0,"Sprite #1 X = "+str$(x)
text 0,20,"Sprite #1 Y = "+str$(y)
wait key
Yes you can make any sprite use the same image... if the image changes all other sprites using that same image number will change.
` Change to a random color
ink rgb(rnd(255),rnd(255),rnd(255)),0
` Make a box with the color above
box 0,0,75,75
` Change the color to white
ink rgb(255,255,255),0
` Add text
center text 37,27,"Image 1"
` Grab image
get image 1,0,0,75,75
` Make 10 sprites using same image
for t=1 to 10
sprite t,rnd(640),rnd(480),1
next t
wait key