(SOLVED)Move objects across layers and zoom

I have this formula to move an object on the UI layer to match an object on the base layer. It works, but when I zoom in or out the base layer, the UI object slides upleft or downright. Any way I could always lock the UI object to center the player’s position no matter the zoom? For reference, it’s meant to be a sort of popup that is above the player’s head.

Generally you should have same zoom on both layers
You could use copy camera settings extension for that

But if you need for some reason have different zoom on these layers
Then VegeTato made extension which allows that Coordinate Exchange by github-actions[bot] · Pull Request #1252 · GDevelopApp/GDevelop-extensions · GitHub

1 Like

Thank you so much! The extension worked!

1 Like

Can’t seem to find the extension in GDevelop… What is it called?

Never mind, specifying the LayerName when using CursorX solved this for me: CursorX(“LayerName”) instead of just CursorX().

1 Like