I'm trying to create a javascript that would make the camera partially follow the mouse, but mainly the player in my 2d sidescroller! (And its movement should also be smoothed) I need help with it!
Any advice will help and be appreciated!
Thank you in Advance :)
Something like that should work, you can change the .3f to something else (1.0f would mean your camera would look where your mouse is, and 0.0f would mean looking directly at the character, .5f is right in the middle ;) )