简体   繁体   中英

Scaling animation or Texture Atlas on libgdx

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM