Skip to main content

Quick Start: a Character in Your Game

Staff preview

Living Characters is in staff preview. If the Characters button is missing from your rail, your account does not have it yet. The Pixi Puppet node itself works for everyone.

This tutorial puts the built-in Leprechaun into your game by hand, in about ten minutes. It costs nothing: no character is made, a ready sample is copied into your project. When it plays, In Your Game makes it react to spins and wins.

Want the AI to do all of this for you? See With the AI Agent.

You need: a project open in XGENIA with a Pixi Stage in it (any slot game made in XGENIA has one).

Step 1 — Open the Character Studio​

Click Characters in the editor's left rail (the theatre-mask icon, tooltip Characters: animated characters for your game), or press Ctrl+Alt+4. The Character Studio opens full-window inside the editor.

Characters rail

The Studio works on the project that is open in the editor. If no project is open it says Open a project in XGENIA to work on its characters.

Step 2 — Open a sample​

The welcome card lists your project's characters (if any) and, under Or try a built-in example, three samples: Leprechaun, Hero and Dragon. Click Leprechaun.

Studio in editor

The character opens with a Sample tag in the top bar. Samples are not part of your project until you save them into it (step 4).

The first time, a Where to start card appears. Click Try Play, or Got it to close it.

Where to start

Step 3 — See it alive​

Click Play in the middle of the top bar, or press Tab.

  • Move the pointer over the view: the character turns to look at it.
  • Click the character: it reacts to the tap.
  • Click Spin, Big win, Bonus enter… in the dock at the bottom: it plays that game moment.

Play mode

Press Esc or click Edit to go back.

Step 4 — Save it into your project​

  1. Click Save (top right).
  2. At the top of the menu, under Save to project, the name field after assets/characters/ is filled in with leprechaun. Keep it, or type another name (letters, digits, _ . -).
  3. Click Save to project.

The Studio writes assets/characters/leprechaun/character.xgc.json and its atlas pictures, then shows pixi.Puppet Package URL with the path and a Copy link. Click Copy.

Save to project

Step 5 — Add a Pixi Puppet node​

Switch from the Studio back to your game's component.

  1. Click Add in the rail (Add a new piece to the game).
  2. Search for puppet (or character). Pixi Puppet is under Game Engine.
  3. Add it inside your Pixi Stage (or a Pixi Container in it). A Pixi Puppet outside a Pixi scene draws nothing.

Add pixi puppet

Step 6 — Point it at the character​

Select the new node and, in its properties:

PropertySet it toWhy
Package URLassets/characters/leprechaun/character.xgc.json (paste what you copied)Which character to play
Height (px)400Characters are drawn at their source size, often 1500 px or more. Height fits the character to this many pixels
X, YWhere it should standPosition in the parent's space
Clipidle (the default)What it plays until round events take over

Package url

Step 7 — Run it​

Open the preview. The leprechaun stands in your scene, breathes, blinks and plays idle on a loop.

In preview

If nothing shows, check the node's Error output — see Troubleshooting.

What next​

Next stepPage
Make it react to spins, wins and the bonusIn Your Game
Choose what it does at each moment, and what a tap on its hat doesMoments, Faces & Pictures
Make a character of your ownMaking a New Character or With the AI Agent

When you save the character again from the Studio, every Pixi Puppet in the open component whose Package URL is exactly that path reloads it. You do not need to touch the node.

Was this page helpful?