Skip to content

Interface: SSPartFollowOptions ​

Defined in: src/PartTransform.ts:32

How a facade's part attachment follows its part. Engine-agnostic so the pixi and rmmz facades share one option shape (the target object they drive is engine-specific and lives on each facade's own attachment type).

Properties ​

addAsChild? ​

optional addAsChild?: boolean

Defined in: src/PartTransform.ts:56

Parent the target under the player so it inherits the player's own transform and lands exactly on the part (default true). When false the target is driven where it already lives — an exact match then only holds while it shares the player's coordinate space.


onHide? ​

optional onHide?: "follow" | "hide"

Defined in: src/PartTransform.ts:49

What to do on frames the part is hidden: 'follow' keeps tracking it (default), 'hide' hides the target too. A part absent from the current animation always hides the target regardless of this.


position? ​

optional position?: boolean

Defined in: src/PartTransform.ts:34

Drive the target's position from the part. Default true.


rotation? ​

optional rotation?: boolean

Defined in: src/PartTransform.ts:36

Drive the target's rotation from the part. Default true.


scale? ​

optional scale?: boolean

Defined in: src/PartTransform.ts:43

Drive the target's scale from the part. Default false: a follower is placed at the part, not sized by it, and a health bar or a name plate stretching with a breathing animation is rarely what was wanted. Turn it on for something that is part of the artwork — a weapon in a hand.