Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

From Procreate Illustration to Interactive Rive Mascot With State Machines

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: From Procreate Illustration to Interactive Rive Mascot With State Machines, with Charmotion demo characters

Export the finished Procreate illustration's parts as separate PNG files, rebuild the character in Rive with separate eyes, mouth and body layers, then add a state machine with a number input for each mood. Your app sets that input to switch an interactive mascot's mood at runtime.

Key takeaways

  • Export separate PNG layers from Procreate with Share Layers, which includes only the visible layers.
  • Split the character into eyes, mouth, body and moving accessories before rigging it in Rive.
  • Use a number input for moods that blend, a boolean for on or off conditions and a trigger for one-shot events.
  • Each runtime finds the state machine by name and sets its inputs, so the app controls every mood.
  • Test every mood in a simple grid before shipping, and check the Free plan splash screen on exported files.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

How do you prepare a Procreate illustration for rigging?

This guide walks through the full path from a procreate character illustration to interactive rive state machine mascot: you start with one finished drawing in Procreate and finish with a .riv file that your app can drive from code. Each decision you make in Procreate affects the rig later, so the export step matters.

Start with one finished character on a single artboard. Hide sketch layers, guides and any background colour you do not want in the final file. Procreate's Share menu can export a layered PSD, a native .procreate file, or a PNG with transparency, but for a rig you want separate pieces.

Use the Share Layers section and choose PNG Files. Procreate exports all visible layers as a batch of individual PNGs, numbered after the artwork name, such as Mascot-1 and Mascot-2. Hidden layers are skipped, so toggle a part off before you export if you do not need it. Keep a written list that matches each number to its body part, because the file names will not show your layer names.

Export a second file with Share Image and PNG with transparency. Open it on a dark background to check the outline. Any stray edge pixel will show up in Rive as a halo around every mood.

PNG pieces are raster images, so keep the Procreate canvas at the size you plan to display, with a small margin for bounce and squash. Enlarging a small export later will soften the lines.

Which parts of a character need their own layer?

A character can only move a part that is a separate shape. Split the drawing so each moving part is its own layer before you export.

PartLayers to makeWhy
Head and earsHead, and each ear as its own layerEars can follow the head with a small lag
EyesOpen eye, closed eye (lid), pupilsBlinks and looking around need separate shapes
MouthOne layer per shape: closed, open, smileTalking and happy moods swap mouth shapes
Body and armsTorso, and each arm separatelyAn arm can wave while the body idles
Tail, antenna, accessoryOne layer eachLets the part move on its own

Overlap matters. If the neck is cut exactly at the edge of the head, a bent head will show a gap. Draw a little hidden overlap under any part that moves, so the body and head can bend without revealing empty space.

Do not merge eyes and mouth into the face layer to save time. A merged face can only be swapped as a whole, which means you lose the ability to blink or talk without redrawing the face in every state.

How do you build the state machine in Rive?

Import the PNG pieces into a Rive artboard in the same stacking order you used in Procreate. Group the parts that move together, such as the head with its ears, and add bones or meshes where a shape needs to bend. Then animate each state you need as a short loop, such as idle, happy, sad, thinking and loading. The Rive tutorial for beginners covers the editor basics if you are new to it.

The state machine is where moods are defined. Choose the input type for each control:

InputUse it forExample
NumberMoods that blend, one value per statemood 0 idle, 1 happy, 4 sad
BooleanA condition that stays on or offisListening
TriggerA one-shot event that fires oncea tap or a reset

A common setup is one number input named mood, with transitions between the states that need them. Most mood changes are easier to manage through a single number than through a web of boolean flags. For the model in more depth, read Rive state machine inputs and moods.

Name inputs the way your code will read them. A name like mood is easy to search for in code, while mood_v2 or Input 3 is not. Use the same spelling in the editor and in your app, because the runtime looks up inputs by name.

Keep loops short and start each one on its first frame. A loop that ends on a different pose than it starts will jump every time it repeats.

How does app code set a Rive state machine input?

Each runtime finds the state machine by name, lists its inputs, and sets the value you want. The names must match the ones you chose in the editor.

On the web, the runtime exposes stateMachineInputs for a named state machine, where rive is your Rive instance. Find the input by name and set its value. Number and boolean inputs have a value property, and trigger inputs are fired by calling a method on them.

const inputs = rive.stateMachineInputs('CharacterStateMachine');
const mood = inputs.find(function (i) { return i.name === 'mood'; });
mood.value = 1;

Other runtimes follow the same pattern with their own names:

  • Android: the runtime has one method for each input type, number, boolean and trigger, called through the view.
  • Flutter: create a state machine controller from the artboard and the state machine name, then read the inputs from controller.stateMachine.inputs.
  • React: the useStateMachineInput hook takes the Rive instance, the state machine name and the input name, and returns an input you can set or fire.

A boolean is usually a flag such as isHovered or isActive. A trigger fires a one-shot event such as a tap or a reset. Read your runtime's current API page before you ship, because method names differ between platforms and versions.

How do you test every mood before shipping?

Test each mood as a number before wiring the real UI. A small page with one button per mood value you defined is enough. Click through them in the orders your product can produce, because a sad to happy transition looks different from idle to happy.

  • Check that each loop starts from its first frame and does not jump.
  • Check that blends between neighbouring moods look intentional rather than like a snap.
  • Add an idle step between a strong mood and a calm one, so the body does not jolt.
  • Test on the slowest device you support, not only your laptop.

Preview the file before you commit to a plan. The online preview guide shows how to open a .riv file and check its inputs. Exports from Rive's Free plan show a splash screen, while paid plans export without it, so read Rive pricing and commercial use before a launch.

Also test the mood that failed in your first draft. Most problems show up in the transitions, not in the loops.

When should you skip the manual rig?

Hand-rigging gives you full control over every frame. It suits a team with a motion designer, a brand character that will live for years, or moods that no standard set covers. If you have one flat character and need the common states, a generator can do the rig for you. The PNG to Rive page compares the routes.

Disclosure: Charmotion is our product.

Charmotion takes one finished, coloured character facing the viewer with visible eyes and mouth. Sketches, groups and busy scenes are refused before anything is charged, so one flat character exported from Procreate is the right input. The output is one .riv file with a CharacterStateMachine that has a number input named mood. Its mood numbers are fixed: idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9. Characters have no one-shot triggers, so a success is shown with happy and an error with sad.

How to turn a Procreate illustration into an interactive Rive state machine mascot

  1. Finish one character. Keep one flat character on one artboard, hide sketches and the background, and check that it reads clearly at small sizes.
  2. Export the parts. In Procreate, use Share Layers, choose PNG Files, and keep a list that maps each numbered file to its body part.
  3. Split the moving parts. Give the eyes, mouth, body and moving accessories their own layers, with hidden overlap under any part that bends.
  4. Rig and animate in Rive. Place the PNGs in a Rive artboard, group the parts, add bones or meshes where needed, and animate each state as a loop.
  5. Build the state machine. Add a number input named mood with transitions between states, and add boolean or trigger inputs only where a condition needs them.
  6. Set inputs from code. In your runtime, find the state machine by name, find the mood input, and set its value when the app state changes.

Frequently asked questions

Does Procreate export a Rive file?

Procreate's official pages describe PNG, PSD, PDF, GIF, MP4 and layer exports, not a Rive export (as of December 2026). Export the layers as PNG and build the state machine in the Rive editor.

What does it cost to start?

Procreate for iPad is a one-time purchase of $12.99 with no subscription (as of December 2026). Rive's Free plan lets you build and preview, but exported .riv files play a Rive splash screen. Paid plans export without it, so check Rive's pricing guide before launch.

Can I use one flattened PNG instead of separate layers?

Yes, for a simple idle bob or one wave. A flat PNG cannot blink the eyes or change the mouth, because those shapes are part of the same pixels. Export layers when the face needs to act.

Do I need code to switch moods?

Not to build the file. The app needs code to set the mood input at runtime, and the Rive editor lets you preview each input value before you write that code.

Sources

Related guides