Quick help with sprites plz

How do I get the sprite to update whenever my mouse is in different locations?