animate icon indicating copy to clipboard operation
animate copied to clipboard

Retina strategy

Open stevenalanstark opened this issue 8 years ago • 2 comments

Hello,

Do you have any advice for retina strategies when using assets from a FLA file ?

The best approach I can come up with is to create a timeline with labels for x1 x2 and x3 pixel densities, with their contents scaled to 100%, 50% and 33.3%, then to loop through the scene, and if it find a label, gotoAndStop on the correct label after removing the unused clips.

This works, however it's a lot of work for the artists to need to create these timelines for each static image used.

Is there a better solution here?

stevenalanstark avatar Aug 17 '17 23:08 stevenalanstark

Hi @stevenalanstark I don't know if it's a particularly good strategy but what I have done is brief artists to build the FLA at maximum resolution and then create a 50% scaled copy of each image and loop through the fla.stage.assets modding the image URLs from name.png to [email protected] (when on mobile). PixiJS auto-detects @Nx in image URLs and adjusts the resolution of the Sprite for you.

ianmcgregor avatar Sep 15 '17 09:09 ianmcgregor

Interesting approach, thank you for the feedback :)

stevenalanstark avatar Sep 20 '17 18:09 stevenalanstark