There are lots of mistakes in those expressions. Fixed:
X: clamp(Player.X, RectangleFocusArea.BBoxLeft+ViewportWidth("Player")/2, RectangleFocusArea.BBoxRight-ViewportWidth("Player")/2)
Y: clamp(Player.Y, RectangleFocusArea.BBoxTop+ViewportHeight("Player")/2, RectangleFocusArea.BBoxBottom-ViewportHeight("Player")/2)
Also, the size of RectangleFocusArea needs to be larger than the window (viewport) size, otherwise clamp will not work.
Thanks dop2000 For you prompt response, Could you help us over this weird issue, Please find the file over here.
Having said that,our requirement is to place the whole game to center of view port because in the modern smartphone the aspect ratio is varied device to device,we are currently have the view port 16:9
If the whole game wont stay on the center then on the device which doesn't feature 16:9 display, then the background will looks weird. We want to fill the vacant display with a BG whenever the phone screen reach beyond 16:9.