Aim with mouse?

Hi, im making a top-down tile based shooter, and i was wondering how to make the character pivot and aim based on the position of the mouse…