Finding the middle of the screen

How could I find the middle of the screen, I also have a camera that moves around so the middle of the screen moves too.

Also I want game XY would a UI work or no??

The X and Y on the UI layer never change.

If you want the center the screen on the game layer
then you need to add the camera location to it like this:
Camera X/Y + Screen size X/Y * 16

1 Like