Plays a rigged 2D character package (.xgc.json) in a Pixi scene: clips, look-at, sliders and clip events, driven directly or by the slot round.
The Pixi Puppet plays a Living Character inside a Pixi Stage or Pixi Container.
The node loads a character package (assets/characters/<name>/character.xgc.json and its atlas pictures) and plays it. It works in two modes:
- Direct: it plays the clip named in Clip.
- Round events: from the first round signal on, the character's own moments pick the clips, under the market's rules. See In Your Game.
It is found under Game Engine in the node picker; search puppet or character. It must sit inside a Pixi scene; it takes no children.
Puppet
| Data | Description |
|---|
| Package URL | The character file, for example assets/characters/lucky/character.xgc.json. A folder also works (character.xgc.json is added). Changing it reloads; empty removes the character |
| Seed | Seeds the random parts of the procedural motion (blink timing, variation) and the idle extras. Default 1 |
| Edge Mode | As Rigged, Alpha or SDF. SDF edges are for parts shown strongly magnified |
| Signal | Description |
|---|
| Reload | Read the package again from disk, after it was re-saved outside the Studio |
Animation
Used in direct mode only. Ignored once round events drive the character.
| Data | Description |
|---|
| Clip | The clip to play. Default idle. Empty stops it |
| Loop | As Clip, Loop or Once |
| Fade (s) | Crossfade time between clips. Default 0.2. In round-event mode it overrides the character's own blend only if you set it |
| Speed | Time multiplier, 0 freezes. Also scales the round-event timing |
| Signal | Description |
|---|
| Play | (Re)play Clip |
| Stop | Stop |
Look At
| Data | Description |
|---|
| Look At | Turn the head towards Look X, Look Y |
| Look X | Target point, in the same space as X / Y |
| Look Y | Target point, in the same space as X / Y |
Parameters
| Data | Description |
|---|
| Param Name | A slider name, for example Smile (see the Params output) |
| Param Value | The value to hold it at |
| Signal | Description |
|---|
| Set Param | Hold the slider at Param Value over the clips. Kept across reloads |
| Release Param | Hand the slider back to the clips |
Behaviour
| Data | Description |
|---|
| Market | Default, UK or GLI-19. The rules applied to round events. Changing it starts again from rest |
| State | A moment name for Trigger State: spin_start, win_small, win_big, win_mega, anticipation, bonus_enter, bonus_exit, tap_react, idle, no_celebration |
| Signal | Description |
|---|
| Trigger State | Play the moment named in State, under the same rules |
Round Events
Values are read at the moment a signal fires.
| Data | Description |
|---|
| Stake | The round's paid stake |
| Win | The round's win, in the same unit as Stake |
| Tier | Optional: none, small, big or mega, overriding the default tiers (big ≥ 10×, mega ≥ 50×) |
| Feature | The feature's name, for example free_spins |
| Feature Confirmed | The server's result already holds the feature. Anticipation plays only then |
| Signal | Description |
|---|
| Round Start | A spin starts (reads Stake) |
| Round Result | The server's result is in (reads Win, Stake, Feature, Feature Confirmed, Tier) |
| Round Settled | The round is over |
| Feature Enter | A feature starts (reads Feature) |
| Feature Exit | It ends (reads Feature, Win as the feature total) |
| Tap | A tap with no part: the Tapped moment |
Riding
| Data | Description |
|---|
| Name | This character's name, for others to ride on |
| Ride On | The Name of the character to ride |
| Ride Bone | The carrier's bone to ride. X, Y and Rotation become an offset from it |
| Turn With Bone | Rotate with the bone. Default on |
| Share Moments | Get the carrier's round events (not its taps) |
| Share Sliders | Comma-separated slider names to copy from the carrier every frame |
| Data | Description |
|---|
| X | Horizontal position |
| Y | Vertical position |
| Rotation (rad) | Rotation in radians |
| Scale X | Horizontal scale; -1 mirrors |
| Scale Y | Vertical scale |
| Height (px) | Fit the rest pose to this height. 0 = the source size, often 1500 px or more |
Appearance
| Data | Description |
|---|
| Alpha | Transparency |
| Visible | Visibility. A hidden character is not drawn, but its clips keep time |
| Z-Index | Drawing order among siblings |
Outputs
Events
| Signal | Description |
|---|
| Ready | A character finished loading |
| Event | A clip event fired |
| Clip Finished | A clip that does not loop ended |
| Tapped | The player tapped the character (only characters with tap zones) |
| Data | Description |
|---|
| Event ID | The event's id, for example cheer |
| Event Type | sfx, fx, shake or custom |
| Finished Clip | The clip that finished |
| Tapped Part | The part that was tapped |
Status
| Data | Description |
|---|
| Is Ready | The character is loaded |
| Loading | It is loading |
| Error | Why it could not load or play — see Troubleshooting |
Info
| Data | Description |
|---|
| Clips | The clip names the character has |
| Params | The slider names the character has |
Behaviour
| Data | Description |
|---|
| State | The moment it is in |
| Blocked | What the last event or call was refused for, or empty |
General
| Data | Description |
|---|
| Node Reference | The node, for scripts: getPuppet() returns the live character and getBehaviour() the round-event behaviour (null until used) |
See also