Assuming that layer 0 is not scaled, and layer 1 is scaled, Sprite is on layer 1:
On every tick -> Sprite set position to
X: CanvasToLayerX(1, LayerToCanvasX(0, Mouse.X, Mouse.Y), LayerToCanvasY(0, Mouse.X, Mouse.Y))
Y: CanvasToLayerY(1, LayerToCanvasX(0, Mouse.X, Mouse.Y), LayerToCanvasY(0, Mouse.X, Mouse.Y))
.
EDIT 12 days later:
AM_Games , scrap that! I just remembered that you can easily get mouse coordinates for any layer.
Simply set position to Mouse.X("layername"), Mouse.Y("layername")