animate
animate copied to clipboard
Retina strategy
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?
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.
Interesting approach, thank you for the feedback :)