I’m trying to compute a Vector2D whose coordinates are located in the center of the screen. I’m trying to do that by getting the viewport’s size, and dividing each number by two:
That seems like it should work, but when I run this in the editor, it places things in the upper-left quarter of the screen, and when I run it as a standalone game it gives me coordinates at the very top-left corner, just outside of the actual viewport.
So am I doing something wrong here?