i was trying to make animation using sprite but i ran in to a problem. i want to make animation if user hit right key and different animation if user hit left key. and different animation if user hit up key etc....
the problem is that righ tnow this code below only makes one animation. in player class i want change code lil bit so i can create different animation.
this way this code works is that in player class i have arraylist which stores different images. than i can call animation class to create animation.