grapefrukt / grapefrukt-export

a set of actionscript tools to export animations and graphic assets made in flash authoring to other formats.
197 stars 29 forks source link

Problem with elements size. #13

Closed nikitabelosludtcev closed 8 years ago

nikitabelosludtcev commented 11 years ago

Hello, I use the lattest version of grapefrukt-export.

I have made animation character in Adobe Flash. enemy fla_1

Then, I added grapefrukt-export and exported character (with script). enemy fla_2

But, there is the troubles with texture size in exported files. I take head to show you example, but there is the same situation with other parts of enemy character. enemy fla_3

Can you help me? What's the problem?

grapefrukt commented 11 years ago

This is a tricky problem, since there's multiple ways of looking at what the "default" scaling should be. Either, it's they way you're looking at it which is that the first frame decides the size of the generated texture. The second option is to use the 100% scaling of the display object itself, which is the way I designed it.

So, I'd guess there's a scaling taking place somewhere in the chain, like the container itself being scaled down or something similar. It may also be a bug, but it's hard to say for sure without access to the assets you're using.

A quick fix would be to use the global scaling setting by tweaking the value of com.grapefrukt.exporter.settings.Settings.scaleFactor to something like 1.08 before running the export.