Hi. I have question about texture atlases in HaxeFlixel. I can create them and use them but I would like to have more information on how to store them.
Can I create one texture atlas and use it in all states or should I recreate it on every state?
A looked in source of HaxeFlixle and found that all images are cached in background so if I create new texture atlas with the same image as source will it create new instance or use cached on?
I tried to store atlas globally but when I changed states I got null pointer in atlas asset because BitmapData in Atlas object was destroyed.
So I would like to know what is the best way to use texture atlases in HaxeFlixel games.
Thanks.