Wednesday, June 21, 2017

java - How can I make a sprite-sheet-based animation system?



I want to make animations based on a sprite sheet, but I'm stuck implementing it.


The key things I need my code to do are:



  • Play through a set of images once (e.g. a jump animation)

  • Loop through a set of images continuously (e.g. a walking animation)


  • Change an animation's speed


How can I implement such a system?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...