2012-01-11 6 views
2

andengine을 사용하고 있으며 애니메이션 Sprite가 있습니다.Android AndEngine 역 애니메이션

저는 scene.animate(duration,0,5,1)을 사용하여 스프라이트를 첫 번째 타일에서 마지막 타일로 애니메이션합니다.

어쨌든 내가 마지막 타일에서 첫 번째 타일로 시작하도록 애니메이션을 뒤로 할 수 있는지 궁금합니다.
내가 얻고 싶은 것은 0,1,2,3,4,5,4,3,2,1,0입니다.

+0

프레임

sprite.animate(long[] pFrameDurations, int[] pFrames, int pLoopCount) 

그것을 확인 : HTTP : //www.andengine.org/forums/tutorials/adding-a-view-above- a-game-t498.html –

답변

4

이 시도 애니메이션 특성이

Parameters: 
    pFrameDurations: indicates the time delays between animations and must have the same length as pFrames. 
    pFrames: indices of the frames to animate. // Here you specify your 0,1,2,3,4,5,4,3,2,1,0 
    pLoopCount: indicates the no of times you want to repeat the animation 
+0

감사합니다. 정확히 제가 필요한 것입니다. – Fofole

관련 문제