Using a Character in Your Game
A character plays in your game through the Pixi Puppet node. This page shows how to wire it by hand. The AI can do the same wiring for you when it imports a character (see With the AI Agent).
Setting it up
- Add Pixi Puppet (Add → Game Engine) inside your Pixi Stage or a Pixi Container in it.
- Set Package URL to the character's file, for example
assets/characters/leprechaun/character.xgc.json. The folder alone also works. - Set Height (px), for example
400. At0the character is drawn at its source size, which is often 1500 px or more. - Set X and Y. Scale X
-1mirrors it (Height still applies).


When Ready fires, the character is loaded, and Clips and Params list what it has.
Two ways it plays
| Mode | How it starts | What picks the clip |
|---|---|---|
| Direct | The default | You: Clip (default idle), Loop, Fade (s), Speed, Play, Stop |
| Round events | The first time any of Round Start, Round Result, Round Settled, Feature Enter, Feature Exit, Tap or Trigger State fires | The character's own moments (set in the Studio's Moments), under the market's rules |
Once round events have started, they drive the character for good. Clip, Play and Stop are then ignored, and Blocked says clip-input-ignored: round events drive this character.
Use direct mode for a menu screen or a cut-scene. Use round events in a slot.
Wiring the round
Wire your round's signals into the node's Round Events inputs, and set the values before you fire the signal that reads them.
| Input | Fire it when | Reads | In a typical XGENIA slot, for example |
|---|---|---|---|
| Round Start | A spin starts | Stake | Pixi Reel Controller's On Spin Start |
| Round Result | The server's result is in | Win, Stake, Feature, Feature Confirmed, Tier | When the spin request succeeds and you know the win |
| Round Settled | The round is over and the win has been shown | — | Pixi Reel Controller's On Celebration End, or On All Stopped for a losing spin |
| Feature Enter | A bonus or free spins start | Feature (its name, required) | The free-spins start |
| Feature Exit | It ends | Feature (the same name), Win (the bonus total) | The free-spins end |
| Tap | The player taps something that should poke the character | — | Your own hit area |

The values:
| Value | Meaning |
|---|---|
| Stake | The round's paid stake |
| Win | The round's win. Only the ratio of win to stake matters, so any unit works, as long as both use the same one |
| Tier | Optional: none, small, big or mega, to use your game's own tiers instead of the default ones |
| Feature | The feature's name, for example free_spins. Leave empty when there is none |
| Feature Confirmed | true when the server's result already holds the feature. Anticipation only plays then |
Without round wiring the character just plays its idle clip.
What plays
| The round does | The character plays (moment) |
|---|---|
| Round Start | Spin, then Watching reels until the result |
| Round Result with a confirmed feature | Anticipation, then the result |
| Round Result with a win | Small / Big / Mega win, then Resting |
| Round Result with no win, or a win the market does not celebrate | Stays at rest |
| Feature Enter | Bonus enter, then In bonus for every round of the bonus |
| Feature Exit | Bonus exit, then the bonus total is celebrated against the stake that triggered it |
| Tap | Tapped (or the tap zone's reaction), then back to what it was doing |
A missing clip is skipped (or replaced: a missing win_mega falls back to win_big, then win_small). Round Result cuts the spin reaction short; a second Round Result in one round is refused. Round Settled sends a waiting character home at once and lets a running celebration finish.
Win tiers
By default the tier is worked out from win ÷ stake:
| Win | Tier |
|---|---|
| 50× the stake or more | mega |
| 10× or more | big |
| more than 0 | small |
| 0 | none |
The node has no inputs for these thresholds. To use your game's own tiers, send Tier with Round Result. A win at or below the stake is never more than small.
Market rules
Market (in the Behaviour group) applies the rules of where the game is played. Changing it starts the behaviour again from rest.
| Rule | Default | UK | GLI-19 |
|---|---|---|---|
| Celebrate a win at or below the stake | yes | no | yes |
| Taps during a round | react | ignored | react |
| Minimum time between rounds | — | 2.5 s (warned in the console) | — |
| Anticipation without a server-confirmed feature | never | never | never |
| Celebrate before the result | never | never | never |
| Idle extras during a round | never | never | never |
The character is presentation only. It receives the round outcome after the server has decided it and plays animation to show that outcome. It has no input into the outcome, the random number generator, the paytable, the win amount or the round's timing. It cannot shorten the time to a result: it offers no skip or quick-stop, and in the UK profile taps during a round do nothing. It never celebrates before the server result arrives, and it plays anticipation only when the result already contains the feature, so it never suggests a win that is not coming. The same events at the same times always give the same clips.
Animations must not make one symbol look like another paying symbol. Keep character clips from mimicking your symbols.
Taps
- Pointer taps reach the character only if it has at least one tap zone (set in the Studio's Moments). Then a click on it (on a part at least half opaque) fires Tapped with Tapped Part.
- In direct mode, a tap on a part with a zone plays that zone's clip once on top of what is playing.
- In round-event mode, the tap is the Tapped moment, with the zone's own clip and face if the part has one.
- The Tap input is a tap with no part: it plays the Tapped moment.
Taps are ignored for 3 seconds after one is accepted, during celebrations, anticipation, bonus transitions and the spin reaction, for 1.5 s after the round settles, and in the UK during the whole round.
Sounds and effects from clip events
Clips carry events: cheer, coins, shake… When one fires, the node fires Event with Event ID and Event Type (sfx, fx, shake or custom). Wire them to your sound and effect nodes, for example: play the cheer sound when Event ID is cheer.

The events the automatic rig puts in its clips:
| Clip | Length | Events |
|---|---|---|
idle | 4 s, loops | — |
spin_start | 0.9 s | sfx spin_hup |
spin_watch | 2 s, loops | — |
anticipation | 1.3 s | sfx gasp |
win_small | 1.7 s | sfx chuckle |
win_big | 2.8 s | sfx cheer, fx coins, shake small |
win_mega | 3.8 s | sfx gasp, sfx cheer, fx coins ×2, shake big |
bonus_enter | 1.5 s | sfx gasp, fx sparkle |
bonus_idle | 2 s, loops | — |
bonus_exit | 1.3 s | — |
tap_react | 0.9 s | sfx hey |
Clip Finished and Finished Clip tell you when a clip that does not loop ends.
Looking at the pointer
Turn Look At on and feed Look X / Look Y a point in the same space as the node's X / Y, for example the pointer position. The head turns towards it. Characters without look-at report this character cannot look at a point.
Holding a slider
To hold one slider at a value over whatever plays (a character that keeps smiling, a hat that stays off), set Param Name (for example Smile) and Param Value, then fire Set Param. Release Param gives it back to the clips. The Params output lists the slider names.
Forcing a moment
State + Trigger State plays a moment by name: spin_start, win_small, win_big, win_mega, anticipation, bonus_enter, bonus_exit, tap_react, idle, no_celebration. The same rules apply. For example, anticipation only plays when this round's result confirmed a feature.
One character riding another
A parrot on a pirate's shoulder, a rider on a dragon:
- On the carrier (the pirate), set Name, for example
pirate. - On the rider (the parrot), set Ride On =
pirateand Ride Bone = one of the pirate's bones (see Skeleton in the Studio). Turn With Bone (on by default) turns the rider with the bone. - The rider's own X, Y and Rotation become an offset from that bone.

| On the rider | Does |
|---|---|
| Share Moments | The rider gets the carrier's round events (not its taps) and plays its own clips under its own market |
| Share Sliders | Slider names, comma-separated (for example HeadTurnX, Blink): the rider copies the carrier's values every frame |
Status and errors
| Output | Tells you |
|---|---|
| Ready, Is Ready, Loading | Load progress |
| Error | Why nothing shows — see Troubleshooting |
| State | The moment it is in |
| Blocked | What the last event was refused for, for example market-no-celebration-at-or-below-stake, tap-cooldown, not-ready |
An event sent before the character has loaded is dropped (not-ready). Fire round events after Ready.
Performance
- One draw call per atlas page: most characters are one draw call.
- Copies of the same character share its pictures.
- A hidden character (Visible off, Alpha 0, or a hidden parent) is not drawn, but its clips keep time, so events still fire.
- Speed
0freezes it; Reload reads the file again after it was re-saved outside the Studio.