SPOFS can be used to read the sprite's location. Sample code in screenshot.