64. Add camera-driven overlay parallax
Figure 37. Overlay parallax uses camera travel, spare artwork and the room’s navigation bounds.
1. Use an image larger than the overlay design area in the direction you want to scroll.
2. Enable Parallax Scroll with Camera.
3. Choose Horizontal (X), Vertical / Depth (Z), or both.
4. Start Parallax Travel Strength at 1 and Parallax Smoothing at 6.
5. Confirm valid room navigation bounds. The camera target’s progress across those X/Z bounds drives the image travel.
6. Move the camera target left and right in Test Scene. For an ordinary follow camera, make the player walk far enough to move that target.
7. Check the extreme views and reduce strength if the decoration moves too aggressively.
The image is scaled enough to cover the design area, then cropped and moved within its spare dimensions. If there is no excess width, horizontal parallax has no travel. Changing camera rotation in place without changing its target across the bounds is also not the same as a target pan.
This is camera-target parallax, not a mouse-follow lens. Smoothing is a response speed: a larger number catches up faster; a smaller positive number gives more lag. Strength 0 keeps the oversized image centered.
