2012-10-31 5 views
0

저는 Android 게임을 만들고 AndEngine을 사용하고 있습니다. AutoparallaxBackground를 사용하여 배경을 이동합니다. 배경 이동이 부드럽 지 않아 이 붙어서 움직입니다.. 배경을 부드럽게 움직이는 방법.?andengine을 사용하여 움직이는 배경 이미지가 부드럽 지 않습니다.

final AutoParallaxBackground autoParallaxBackground = new AutoParallaxBackground(0, 0, 0, 5); 
     autoParallaxBackground.addParallaxEntity(new ParallaxEntity(-50.0f, new Sprite(0, 0, this.texRegBg1))); 
    autoParallaxBackground.addParallaxEntity(new ParallaxEntity(-60.0f, new Sprite(0, 0, this.texRegBg2))); 
    autoParallaxBackground.addParallaxEntity(new ParallaxEntity(-70.0f, new Sprite(0, 0, this.texRegBg3))); 
    autoParallaxBackground.addParallaxEntity(new ParallaxEntity(-80.0f, new Sprite(0, 0, this.texRegBg4))); 
+0

사용중인 텍스처 이미지의 크기는 얼마입니까? –

+0

이미지 크기는 720x480입니다. 텍스처 크기는 1024x1024입니다. – Andy

+0

흠 ... 큰 크기가 문제 일 수 있다고 생각합니다. 작은 이미지로 테스트하고보기가 부드러움을 향상시키는 지 확인하십시오. –

답변

0
  1. 시차 샘플이 AndEngine에 포함되어있어, 장치에 그것을 시도하고 원활하게 작동하는지 확인하십시오.

  2. 시차 샘플의 텍스처를 텍스처로 바꾸고 여전히 원활하게 작동하는지 확인하십시오. 그렇지 않은 경우 - 부드럽을 때까지 텍스처를 변경하고 수정하십시오.

  3. 텍스처를 하나씩 추가하십시오. 그 (것)들이 매끄럽게 일하게하십시오.

관련 문제