My game is a side scroller. The player only moves along the x-axis. It's something like a dodging game. I want the player to be at the screen center at anytime in the game and I can't find any proper way to do this or any tutorial.
UPDATE: I think I lied to you about the "at anytime". It's actually "at anytime unless the camera reaches the bound" which means the player will be allowed to leave the screen center when the camera reaches the bound so he can be anywhere on the x-axis inside the bound.
And also, the player only need to be at the screen center X.