Skip to reading
Shaders, Effects & Layered Scenery

52. Set the camera’s scroll range

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView illustrations

Figure 30. Room Scrolling, Follow Axes and bounds are on the stage’s 2D Camera tab.

1. Open 2D Camera. Begin with an Orthographic View Height such as 11.25.

2. Choose Follow Player for continuous tracking, or Follow Near Screen Edge for a dead-zone approach.

3. Choose Horizontal Only for a side-to-side workshop pan.

4. Set stage bounds to the intended painted area, for example X -16 to 16 and Z -9 to 9 for a centered 32-by-18 background.

5. Enable Smooth Camera Follow and start Camera Follow Speed around 5.

6. For edge follow, choose a comfortable dead-zone width in world units. Test the player near both ends of the scene.

7. Apply and save. Confirm ordinary scrolling before tuning any parallax factor.

Camera bounds control what the camera can reveal. Navigation controls where the character can walk. Give the player enough walkable range to move the view, while keeping the view inside useful artwork.

A current 2D Stage has one locked orthographic camera. It can frame, zoom, roll and follow within the stage. It is not a perspective camera that can orbit away from the painted plane.

Page 56 of 93Permalink
Go to page