if spritex(1)=number then
if spritey(1)=number then
execute code
end if
end if
but its difficult to pinpoint exact coordinates depending on what your doing, so you might want to make it execute if sprite is within a 50 pixel radius
if spritex(1)>50 then
if spritex(1)<100 then
if spritey(1)>50 then
if spritey(1)<100 then
code
end if
end if
end if
end if
or you can execute code when any part of the sprite touches a coordinate
if spritetouchingxy(1,x,y)=true then
code
end if