You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Sunday, January 6th 2019, 12:25am

screentolayer question

i'm trying to use screentolayer with dynamic layer name, with no luck..

Source code

screentolayer(layer[get(mylayername)], mouse.stagex,mouse.stagey, thelx,thely);

it won't work till i give the real name of the layer at first parameter.

How to do it dynamically?


Sunday, January 6th 2019, 10:44am

doesnt this work?

screentolayer(get(mylayername), ... );

Mael B.


Posts: 152

Location: France, Montpellier

  • Send private message


Sunday, January 6th 2019, 11:37am

doesnt this work?

screentolayer(get(mylayername), ... );

I can confirm that it work well like this :)


Sunday, January 6th 2019, 6:29pm

yep it works

thought i tried that one, but no :)

thanks guys