Making the Characters head follow the cursor in a Sidescroller

Hi TheMelonofTruth,

Here’s a starting point for this. First thing I think you would need is to transform the ScreenPosition of the mouse to a 2d World Position. This is done like this :

Once you have it, you can calculate the angle needed between that position and the head of the player.

Once you have the angle, you can set it in your blueprint and access it from your animation blueprint and modify the bone accordingly.

Make sure the rotation setting are set properly, if not, the changes just won’t appear on your model. To set those setting you have to have the “Transform (Modify) Bone” node selected.

Hope this helps

Cheers