Ive never used sprites before, but maybe this will work:
do
follow_line(sprite_x,sprite_y)
sync
loop
function follow_line(x,y)
if (rgbr(point(x-1,y-1)))=*red color it should follow*
if (rgbg(point(x-1,y-1)))=*green color it should follow*
if (rgbb(point(x-1,y-1)))=*blue color it should follow*
paste sprite *number*,x-1,y-1 : endfunction
endif
endif
endif
if (rgbr(point(x-1,y)))=*red color it should follow*
if (rgbg(point(x-1,y)))=*green color it should follow*
if (rgbb(point(x-1,y)))=*blue color it should follow*
paste sprite *number*,x-1,y : endfunction
endif
endif
endif
if (rgbr(point(x-1,y+1)))=*red color it should follow*
if (rgbg(point(x-1,y+1)))=*green color it should follow*
if (rgbb(point(x-1,y+1)))=*blue color it should follow*
paste sprite *number*,x-1,y+1 : endfunction
endif
endif
endif
if (rgbr(point(x,y-1)))=*red color it should follow*
if (rgbg(point(x,y-1)))=*green color it should follow*
if (rgbb(point(x,y-1)))=*blue color it should follow*
paste sprite *number*,x,y-1 : endfunction
endif
endif
endif
if (rgbr(point(x,y+1)))=*red color it should follow*
if (rgbg(point(x,y+1)))=*green color it should follow*
if (rgbb(point(x,y+1)))=*blue color it should follow*
paste sprite *number*,x,y+1 : endfunction
endif
endif
endif
if (rgbr(point(x+1,y-1)))=*red color it should follow*
if (rgbg(point(x+1,y-1)))=*green color it should follow*
if (rgbb(point(x+1,y-1)))=*blue color it should follow*
paste sprite *number*,x+1,y-1 : endfunction
endif
endif
endif
if (rgbr(point(x+1,y)))=*red color it should follow*
if (rgbg(point(x+1,y)))=*green color it should follow*
if (rgbb(point(x+1,y)))=*blue color it should follow*
paste sprite *number*,x+1,y : endfunction
endif
endif
endif
if (rgbr(point(x+1,y+1)))=*red color it should follow*
if (rgbg(point(x+1,y+1)))=*green color it should follow*
if (rgbb(point(x+1,y+1)))=*blue color it should follow*
paste sprite *number*,x+1,y+1 : endfunction
endif
endif
endif
endfunction
im not sure if it will work!
Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb"