Skip to reading
The Scene Designer — Part 3

Change one painted scenery layer

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations
On this page
PCA 3D ADVENTURE STUDIO                                                     0.86.4.0  /  SCENE DESIGNER III

RUNTIME WALKTHROUGH

A background can drift as the camera moves while the walkable floor stays put. You need a room with a named 2D scenery layer and a camera that scrolls. Pick a background detail you can watch against a foreground edge.

0.86.4.0 reference • The Layer field takes the ID of a layer inside the selected room. A scene object with the same name is a different target.

1

Set the amount of horizontal movement#

In a room or object event, add Change 2D Layer Property. Select the room and enter its background layer ID. Choose parallax. Give it the two numbers [0.5, 1.0]. The first number changes horizontal movement. The second keeps the normal vertical behavior.

2

Walk far enough to move the camera#

Apply the event, save, and start the room. Trigger the action, then walk toward the far end. Watch the background slide against the foreground. Leave the comparison layer at [1, 1]. A stationary camera hides the difference.

3

Swap the art on the same layer#

Add another event using the same room and layer. Choose assetId and enter an image asset already in your project. A successful swap reports resource_refreshed. The sprite stays in place. An unusable asset leaves the earlier texture visible.

When only the strength should change

Choose opacity and enter 0.5 for a half-strength layer. For an unknown_or_ambiguous_layer error, check the layer ID in that room and give duplicate layers distinct IDs. Existing Set 2D Parallax actions still work.

PCA 3D / Scene Designer III

Page 92 of 95Permalink
Go to page