In your main loop, increment/decrement the sprite's X/Y until it comes in contact (or near) with the target sprite. You will need to use IF statement(s) and logic conditions to test the coordinates. I'll try to make an example program.