Hi,
I ask this question every couple of Starling version - to see if there's a better solution than the one I use:
I'm trying to implement a display object which can switch between different textures (just like a movie-clip), not instantly - but rather using a "cross-fade transition".
The motivation here is to allow "simple" animation between image "states", for example:
1. Door closed
2. Door opened
Instead of having 8 or 16 states (textures) for a smooth animation of opening the door - there are only 2.
Look at the door(time: 3:55) here: https://youtu.be/7z-RRDlpDY0?t=3m55s or the chest (time: 4:38) here: https://youtu.be/7z-RRDlpDY0?t=4m38s
Currently I'm implementing this by using 2 images (each with a different texture) and by cross-fading between them (by controlling their alpha values). This allows me to switch not only between 2 textures, but between multiple ones (as I set different textures for each image during this process).
I'm sure there are better solutions (mesh-style being one of them, as Daniel mentioned in the previous thread).
I'd love to here your suggestions about this issue.
If the best solution is mesh-style - I'd love if someone could help me with that (as AGAL is not my expertise).
Thanks in advance,
EZ
Last time I asked this question:
https://forum.starling-framework.org/topic/multi-texture-image-or-cross-fading-textures-for-image-is-it-possible