Currently I have this animation:
I would like to play the animation for a specific time everytime it hits a specific actor. Hope someone has an idea :)
1 2 3 4 5 6 7 8 9 10 11 12 | public void hitAnimation() { if (count % 40 == 0 ) { if (animationImage > 1 ) { animationImage = 0 ; } setImage( "polizeiautohit_" + animationImage + ".png" ); animationImage++; } } |