There are many ways to do this..
One important question is ofcourse, what kind of movement do you want?
platform, 8-ways or something totally different?
You shouldn't set the player position, but the direction of the movement of the player towards mouse.x, mouse.y