Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Change drawing row in my sprite sheets  RSS feed

Posts: 5
Android Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to develop my first Android app with animation using sprite sheets. I've followed this tutorial ( Instead of using Elain_walk, i'm using guybrush's actions ( but I'm not understanding how to use a multi-row sprite sheets.

Additionally I changed 'spriteWidth' in from:


in order to fix guybrush stable in the screen...but it's a really bad workaround.

With this code it shows all moving guybrush ( ) I can reduce spriteHeight like this:

but it shows only first row.

So, How can I move DestRect in order to show other rows? Thank you

This is the code:
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!