Skip to reading
The Scene Designer — Part 1

Move a native 2D object

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

RUNTIME WALKTHROUGH

A 2D entity has a position on the room canvas measured in pixels. A painted background layer has its own scenery settings. Choose the entity when you want to move one sign, light or prop.

0.86.4.0 reference • entities / transform2D.position expects two numbers. The capital D is part of the path.

1

Find the placed object#

In Scene Designer, open a 2D room and select a native 2D entity on its canvas. Note the room ID, entity ID and starting X and Y. Use an object whose initial position is easy to see.

2

Give it a destination#

On a switch or interaction add Change Object Property. Choose the room and that entity. Set Property to transform2D.position. For a sign starting at [100, 80], enter [124, 80] to move it 24 pixels right. Use a destination relative to your own starting coordinates.

3

Check rotation or scale separately#

Run the event and look for the rightward step. In a second action try transform2D.scale with [1.25, 1.25]. To turn the object, use transform2D.rotation with one angle. The default unit is degrees; a record explicitly configured for radians uses radians. Change one field at a time so you can see its effect.

When the target is a character

character.walkSpeed, character.turnSpeed, character.animationState and character.animationSpeed affect supported actor controllers. A movement rate changes how quickly a character travels. An animation rate changes how quickly its clip plays.

PCA 3D / Scene Designer

Page 61 of 63Permalink
Go to page