Skip to reading
Actions, Properties & Runtime Updates

Move a native 2D object

Edition 0.86.4.4 Hotfix 2

Updated through 0.86.4.4 Hotfix 2, with cinematic property, recorded-pose or voice-timing lessons as described in this guide. Earlier examples, screenshots and complete registry figures retain their stated edition context.

Download PDFView illustrations
On this page

0.86.4.0 / ACTIONS AND PROPERTIES

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 / Actions and properties

Page 29 of 39Permalink
Go to page