I'm not sure quite what else to call it. Attached capx is the first idea that came to mind, but it seems clunky, and I'm wondering if there is a better approach.
how about something like this...
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the capx. Your approach looks great, but makes way too many objects for my game. I came up with another solution, which I'll post when I get it done, but mine is a trade off too: I need two 'force own texture' layers to accomplish the necessary masking. It's enough to make my iGPU hurt.
Once I post the capx, maybe someone else can figure out how to do it on one layer; masking makes my head hurt.
In the end, I think I'm going to go with a hybrid approach: spawning 4-8 segments and animating them the old fashioned way: multiple frames.
Here's the version using spongehammer sprite and Paster plugin.
Thanks for the post. I'll be on my desktop a little later, and I'll give it a spin. I'd forgot about the paster plugin!
Better late than never. Here is a procedural approach using 4 objects (two masks and two ring halves) that can display any kind of pie animation.
WARNING: this uses two 'force own texture' layers, so it's probably not a good approach for mobile.
OTHER WARNING: this is very much unfinished. The basic functionality works, but there are a lot of bells and whistles that don't work yet (I got a little overzealous ). If you have a lot of different pies that will be animating a lot of different ways, this might be useful. Otherwise, shinkan's approach should be alot more straightforward and funtional. Make of it what you will.