How to slice sprites in two parts?
I'm searching for a good way to slice a sprite into two parts.
My thoughts would be to duplicate the sprite, then to hide half of the first sprite and hide the other half of the second one, then to separate them. But I'm not sure about how can I hide part of the sprite.
Do you think that's a good method, or is there a more efficient one?
(Special bonus if I can slice the sprite with a choosen angle :) )
did you check thie FlxNape demo ? it has a similer effect on one of it's states.
I didn't know about that example in that demo. It seems a bit complicated for what I'm trying to do, but I'm going to strip down this example and find out what I can do from it.