Let's say I have a layout with height of 500.
But I just want to use 450 for the environment (middle), and use the rest just in case for different device with different screen size.
How to make it work with scroll to behavior?
Can't definitely understand your problem..
But if you don't want percisely 450 px, maybe it will be better to use percents? For example, 450 is 90% of 500 (450 = 500 * 0,9)
I think ekajuan wants the camera at the centre of the screen with a gap around the edges so he can run it on different size devices and it will scale. Then he wants to be able to have the game scroll around but at the same time keep this extra padding in place.
I could be wrong but that's what it sounds like.
Develop games in your browser. Powerful, performant & highly capable.
yep, exactly just like BinaryPanda said.