if quadroNum backgroundTile calculateCenterPosBy Delta backgroundScrol

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(quadroNum !=0) {
backgroundTile.calculateCenterPosByDelta( backgroundScroll );
backgroundTile.draw();
// decrease backgroundScroll information
backgroundScroll.x %= backgroundTile.tileWidth;
backgroundScroll.y %= backgroundTile.tileHeight;
//
backgroundTile.x = Math.abs( backgroundScroll.x );
backgroundTile.y = Math.abs( backgroundScroll.y );
trace("quadroNum : "+quadroNum+"("+backgroundTile.x+","+backgroundTile.y+")");
return;
}