So i am trying to do a blood stain system like super meat boy and for it i need the
stains to mask with the wall
Here is a gif the project
Here is code
i want a blood system like super meat boy );
So i am trying to do a blood stain system like super meat boy and for it i need the
stains to mask with the wall
Here is a gif the project
Here is code
i want a blood system like super meat boy );
You don’t want to use mask for that. Sprite masking uses one sprite to show a portion of another sprite. There’s no need for masking in the beginning of the scene event.
I’m guessing you want the wall to partially show through the stain object. What you want to look at is changing the opacity of the stain object, maybe even changing the transparency/opacity gradually with a tween.
I don’t know how it works but maybe, making a separate layer for the blood and changing the bending mode could work?
When you create object with action
Set blood z order to Walla.ZOrder()-1
Or just to be safe set it just to 0