OK, i used crashman's sprite routine and got that to work just fine. How do I check which tile the sprite is on if its coordinates are in ypos and xpos?