I want to set the position of an object to another object. But they are in different layers with different parallax.
What I want:
Target position object (race_flag): ("river") layer parallax 100%
Object to be moved (ruler): ("ruler") layer parallax 0%.
I tried CanvasToLayerY but it didn't work. This is how I used it:
(CanvasToLayerY("ruler", LayerToCanvasX("river",race_flag.X,race_flag.Y), LayerToCanvasY("river",race_flag.X,race_flag.Y))
I tried interchanging layers and values in the code but it still didn't work. Is there any other way to achieve this?