Hmmm, I see. Do you happen to have a project in which the code is running and working successfully? It's not that I've got the feeling this isn't working, it probably is working fine as is, but I'm getting a weird glitch every once in a while. Most likely the glitch is the result of the 'return(ScanDist);' part which causes the sprite that's moving to come to a full stop. Unfortunately that's a complication that I can't afford to have,

I'll look into that plug-in though, thanks,

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software