Skip to reading
Shaders, Effects & Layered Scenery

51. Prepare a scrolling 2D Stage

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 29. The stage background has a world size. This is separate from the camera’s visible height.

1. Create or select a current 2D or 2.5D Stage room.

2. In the room Inspector, open 2D / 2.5D Room and assign the background image.

3. Set the background’s world width and height. For the illustrated example, use a 32-by-18-unit stage.

4. Keep the source image’s aspect ratio unless you deliberately want stretching.

5. Set the ground and navigation for the area the character should walk across.

6. Apply, save and confirm that the plain background appears in Test Scene before adding layers.

A 16:9 camera showing 11.25 world units in height sees roughly 20 units in width. A 32-unit-wide background therefore leaves room to pan horizontally. If the view covers the whole background, there is little or no useful scroll range.

Increasing Source Pixels per World Unit is not the same as widening the stage. Size the image plane and navigation explicitly. A visually large background does not automatically make a larger walkable floor.

Page 55 of 93Permalink
Go to page