Layers && Mask question


(Eva Droch) #1

Hello guys ! How can I make such a view

1st layer - 1st tiles; 2nd layer - black layer; 3rd layer - 2nd tiles //all layers on one level :relaxed:

How to make the (1st layer area ( in 3rd layer )) followed the player :sweat:


(Martí Angelats i Ribera) #2

I haven’t understood what you want to say. Do you want to make something like a simulation of light? Or maybe do you want to show parts of the third layer in the first randomly?


(Eva Droch) #3

Okay google translator, do it :sweat:

mask.swf (147.5 KB) as here, but I need to hide the first layer

Black - the second layer

on the third layer, I need a transparent area that will show the first layer. :neutral_face:


(Martí Angelats i Ribera) #4

I think you’ll have to explain what effect are you trying to accomplish instead of the exact way you are trying it (explain this part of your project a bit, maybe we know a better and easier way of doing the desired result)


(Eva Droch) #5

as here :cry:(video on Russian, demonstration at 3:01)

The example uses the flash cs, but I don’t have flash cs, how to do so with the help of FlashPunk ?


(Martí Angelats i Ribera) #6

It’s not an easy thing to do. I’ll make a custom Graphic for you but you’ll have to wait a few days.


(Eva Droch) #7

Thank you very much for your help ! I’ll wait.

And while I wait, I will teach BitmapData, Sprite and Mask classes. :blush: