- Home /
Animated 2D mask ??
Hi guys, I'm working on a 2D action platformer, the animations are drawn frame-by-frame, not using the unity animator, this is why I'm not looking into Animation Layers.
So, what I'd like to do is find a way to mask the lower part of my plaer body to be able to do upperbody actions while stile running (keep on playing the walking/running animations while the attack animation is also playing).So far, I haven't found any possibility to do so...
What I was thinking is a kind of "mask" who could hide the upper part while I'm running a second animation at the same time. Maybe duplicate my running spritesheet and erase the upper part so I can use it as a "animated mask" ? Or maybe a tricky shader ?
Do you guys have any idea of how I could accomplish that ?
Answer by athormah · Apr 11, 2018 at 12:23 AM
I too would like to know how to this for my game as I am trying to do the exact same thing, so far I haven't had any luck.
Hey actually I just did some research and avast it does not look like there is a way to mask a section of the 2d mask in order to play another, even though you would think there would be, doesn't seem that hard, but anyways I found this article and it shows the persons sprite sheet. His animations are still all hand drawn, but he separated the legs so that he could swap them in for his other attacks if the player decides to run or move while attacking. Hope this helps.
Your answer
Follow this Question
Related Questions
Prevent 2D mask to impact other gameobjects ? 3 Answers
Multiple Sprite animations 1 Answer
Masking sprite with another sprite? 0 Answers
GameObject/Sprite Masking - How to? 1 Answer