I'm having a bit of a problem with making sure that the pause menu ends up at the middle of the screen no matter where my character moves to. I have a rigidbody2d node with a camera2d attached to him so that it follows my character around. In that i grab that camera from my pause menu script and call the function getcamerascreen_center() to set the position of my pause menu but that function does not center my pause menu it is off center more to the right and bottom of the screen. The camera does have an offset but even when i set the offset to 0,0 it still does not center the pause menu.
Any help with this issue would be appreciated. Here is a bit of code that should center the pause menu to the screen.