Character Aim and Shoot on Mouse Cursor in 2D Platformer

Here is the solution: