I need help doing a scrolling background

How could you do a scrolling background that follows the character I know it might be with v-cam but I don’t think it would be with v-cam

If you’re coding, you can use this.project.pan.x and this.project.pan.y to change the scroll X and scroll Y (note that pan x and y of zero is the middle of the canvas).

Something like this code in the update script of the player will make the screen follow them:

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

ok thanks for the help