This is about animation in JAVA. I had success when using same dimension on all picture. But if i keep all picture dimension on same size(width and height) i get some bug which when player punch. Before player's hand touch enemy body, enemy died
But others with my case where idle, run, and punch has an different dimension. Punching animation facing to the left became very strange. Should his hand hit to the left but his body shifts to the right. This is because I draw on the x & y are the same.
How can I fix it? Need instructions :D
I use png coz support transparent
I think this can fix with 2 option 1. Fix my collision detection 2. Fix of drawing position my image when some condition occur