Hi there, I have been struggling to get this work for a hour now
How do I get the center co-ordinates of the window at all times ?
I want to bring up the pause menu like the resume button and the main menu button while the timescale of the game is 0.
I want to get them both at the center of the screen one below the other.
I tired windowheight/2 and windowwidth/2 for the said buttons but that
doesn't work because that will give it a definite position.
I want to get these buttons created in the center of the window on esc down, irrespective of the player position on the layout.
I also have a doubt about. When a new layout is loaded is the other layout still running in the background.
And is there anyway if i could just keep everything the same when esc button down go to a new "pause" layout and then when clicked on resume in the "pause" layout the game beigns from where it stopped??