Help with vcam in my game

In my game, I already coded a character that you can control with WAD movement, animations etc. But now I want to add Vcam so the camera will follow the character but I don’t know what to do. Help? Game:

My Project4-29-2022_22-13-38.wick (12.3 KB)

there are ways of the camera following the character without using a vcam, like this piece of code right here

this.project.pan.x+=(-(this.x-project.width/2)-(this.project.pan.x))/2;
this.project.pan.y+=(-(this.y-project.height/2)-(this.project.pan.y))/2;
1 Like

replace the 2 at the end of each string with a 1 if you don’t like the pan movement

1 Like

wow, thanks this is extremely helpful holy crap

1 Like

You welcome