• Editor
  • How do I scale a character down for export properly?

Hi,

I'm an animator working freelance with Spine. Loving the program, but I'm having some problems with exporting the atlas.

The character in the game is really tiny, and it's impossible to animate it properly on the actual scale it is inside the game. So I have to scale it down when I export it. It's a regular 2d character, no meshes or anything, just need to scale it down and have the filenames not have 0.25 etc in them (request from the programmer).


https://www.dropbox.com/s/imy4p6xtuf7grpl/help.jpg

Example:

  1. I enter 0.25 in the scale property in the atlas settings, and 0.25 in the suffix property, then hit export.
    - Export works fine.
    - Filenames are different (programmer wants the filenames to be the same f.eks: avatar.json, avatar.png, avatar.atlas).

  2. I enter 0.25 in the scale property in the atlas settings, and leave the suffix empty, then hit export.
    - Error on export : "An error occured while packing the images"


Can I simply rename the files after the export? Or will that mess everything up?
Hope someone can help me with this, because the program is so awesome otherwise 🙂

Related Discussions
...
  • Düzenlendi

The crash when leaving the suffix empty is a bug, it will be fixed soon.

For now you can set the scale on the root bone to 0.25,0.25, export, then set it back to 1,1. This may not work well if you translate the root bone in animations, since the translation won't be scaled.