I'll see about setting up a demo later, but in the meantime I'd suggest naming your files, and animations numerically, and using folders to make things easier.
>Start of layout >-for "folders" = 1 to 4 >--for "frames" = 1 to 10 >---sprite set animation to loopindex("folders") >----sprite set frame to loopindex("frames") >-----sprite load frame from appath &"\"& loopindex("folders")& loopindex("frames")&".png"
It shouldn't be necessary to set animation speed as this is happening at start of layout, and all within a loop. Although that does mean that if you plan on loading an animation later on you will have to change the speed.
Edit: [url:2g7db7pk]http://dl.dropbox.com/u/666516/skelanim.zip[/url:2g7db7pk] Not my sprite
I think the best way is to make new action in plugin "Sprite". Says you just need to specify folder where from to load sequences and prefix for frame count and file extension. Action look for subfolders and creates new animations for each one. Then for every subfolder it loads amount of frames equal to amount of files. I think it will be very usable for everybody if someone make this. For me it's very needed feature because artists always improves animations and you need every time to reload it manually.
Not sure if your aware of this, but there's already an action under sprite called "load frame from file", so you don't have to use the image manipulator.(see download above) Also you can do all you suggested via events, and the file object. The only thing you can't do is add frames during runtime.
I'm just trying to understand the advantage of animations loading at the start of layout... For example, I have next animations and associated RAM use: 1. Hero (100 mb of RAM) 2. Enemy1 (20 mb) 3. Enemy2 (20 mb) 4. Enemy3 (20 mb) On total - 160 mb
At the first layout I'm using Hero and Enemy1, so - 120 mb of RAM are used. At the second layout I'm using Hero, Enemy1, Enemy2 and Enemy3 - all 160 mb are used. If I understood correctly, comparing usage of unique .exe, I have an advantage of free 40 mb of RAM only at first layout (and at the meny layout of cours).
The question is: if at each layout I have to render all my animations, is it usefull to use "Load frame" ? Rainman2012-01-27 12:05:34