how do I make it so when i play the game, the camera view goes out so i can see the whole layout?
Develop games in your browser. Powerful, performant & highly capable.
Use the system object to change the layout scale.
Set layout scale
Set the scale (or zoom) of an entire layout. This scales all the layers in the layout, taking in to account their scale rate property.
https://www.scirra.com/manual/125/system-actions