tconkling / flump

Exports Flash .FLAs to GPU-friendly formats
MIT License
381 stars 70 forks source link

Scaling textures, to keep display objects in original size with baseScale != 1 #164

Closed CrazyFlasher closed 4 years ago

CrazyFlasher commented 7 years ago

Exporter:

Runtime:

Set to true, if you want to keep original size of display objects, not matter what scale atlas has. For example, if atlas is scaled to 0.2 and passed scaleTexturesToOrigin is true, then display objects will be the same size as in source file, and their textures will be scaled.

Example: On both examples, atlases exported with base scale 0.5.

  1. Original size in fla:
  2. On the first example, scaleTexturesToOrigin is false (false is default)
  3. On the second example, scaleTexturesToOrigin is setted to true and all stuff is scaled to original size as in fla file.