Please help me with…
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;
Each time i use 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; it works well thats the scrolling background code an now it always goes up and to the left i dont know why someone help me