Dynach
December 30, 2025, 8:12pm
1
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.
ZeroX4
December 31, 2025, 12:41pm
2
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
Dynach
December 31, 2025, 6:25pm
3
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
I still can’t find the extension though…?
Dynach
January 20, 2026, 6:09am
7
You can find it at the link @ZeroX4 provided and scrolling down to CoordinateExchange.zip then importing it in the extensions menu:
GDevelopApp:main ← GDevelopApp:extension/VegeTato/1251
opened 06:59PM - 09 Apr 24 UTC
### Description
Useful if the user wants to sync positions from different lay… ers.
Example:
Object A (on Base layer).
Object B (on UI layer).
You can change Object A position set to Object B position, using the extension expression.
**Event**
Condition: -
Action:
Change ObjectA Xposition set to **CoordinateExchange::ExchangeXPosition(ObjectB.X(), "Base layer")**
Change ObjectA Yposition set to **CoordinateExchange::ExchangeYPosition(ObjectB.Y(), "Base layer")**
and now, ObjectA, UI layer, will always be on top of ObjectB, Base layer X, Y position.
### How to use the extension
Use the extension expression.
### Checklist
- [X] I've followed all of [the best practices](http://wiki.compilgames.net/doku.php/gdevelop5/extensions/best-practices).
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
### What tier of review do you aim for your extension?
Community (Unreviewed)
### Example file
[Example.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/14922843/Example.zip)
### Extension file
[CoordinateExchange.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/14922861/CoordinateExchange.zip)
I did have to edit the extension a little but it ended up working
Here is what I did to include camera zoom
1 Like