Android Andengineは後方にアニメーション化します
質問
Andengineを使用しており、アニメーションのSpriteがあります。
私が使う scene.animate(duration,0,5,1)
スプライトを最初のタイルから最後までアニメーション化します。
どういうわけかアニメーションを後方にできるように、最後のタイルから最初のタイルまで始めることができるかどうか疑問に思っています。
私が得る必要があるのはです 0,1,2,3,4,5,4,3,2,1,0
.
解決
これを試して、
sprite.animate(long[] pFrameDurations, int[] pFrames, int pLoopCount)
Animateはフレームに仕様が付いています
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
所属していません StackOverflow