How to create this black mask when the player goes through the tree?
Now we are using tree transparency but I want to use this black mask.
The tree and the bunny are on the same layer, we use y-sort
Develop games in your browser. Powerful, performant & highly capable.
The way we did this in Moonstone Island was by placing a semi-transparent copy of the character sprite on a layer above. Or you can paste it on a drawing canvas. It won't be dark though:
The trees are not transparent.