0

I am working with a relatively small sprite sheet that contains 1 row of 6 tiles. what I would like to do is loop through the first 5 tiles 3 times and then stop on tile 6. Any help would be greatly appreciated.

IrishCarBomb
  • 49
  • 1
  • 2
  • 11
  • what is about a simple for-loop? – Izu May 28 '14 at 07:44
  • I'm using the animate method from AndEngine. I was able to get it to loop the proper amount of times through the correct subset of tiles. I just need to get it to stop on a specific tile that is not apart of the main subset for the loop. – IrishCarBomb May 29 '14 at 00:12
  • @user3547741 You can use below function for animation. In That you set no of loop and tiles. sprite.animate(your FrameDurations in long[], your frame index int[], new pAnimationListener) – Divyang Metaliya May 30 '14 at 09:40
  • OK, I have it looping through the correct frames. I just need it to stop on a frame that is not part of the loop. Possible? – IrishCarBomb Jun 04 '14 at 02:35

0 Answers0