Had a quick look…
First your AnimBP is casting to Ue4ASP_Character, but your are using Sidescrollcharacter as pawn.
The pitch function in the AnimBP is working when you manually add a pitch value to the pitch varible.
So I think you just need to tell AnimBP where the mouse cursor is on the screen…
Found a tutorial that may help: