2012-01-11 4 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

関連する問題