—,
replace:
'player: set angle toward (Mouse.X, Mouse.Y)'
with:
'player: rotate 360*dt degrees toward (Mouse.X, Mouse.Y)'
Your first expression sets the angle instantly, hence the flipping.
You can experiment with the amount of degrees to vary the speed of rotation .
Have fun