Scaling animation or Texture Atlas on libgdx

718 views Asked by At

I forgot to set the proper size of my frames in photoshop so now the animation of my character is huge, is there a way I can scale the texture atlas or animation using methods just like .setSize();.I mean scaling just like sprites and textures.

1

There are 1 answers

1
Phil Anderson On

You'd be much better off scaling them in photoshop.

Scaling them will mean that you're using up way more texture memory than you need to, and will potentially add complications in other areas too.\

If you really want to do it, simply scale draw the TextureRegions that you get back from getKeyFrame() with a scale applied.