Make a character (quick start)
English · Português (BR)
This is the short path. You will make a working fighter in about ten lines, then grow it. Every field is listed in the full UMF reference.
1. Start from a fighter that already works
A UMF file can inherit a whole fighter with extends. Your fighter gets the stats, art, animations and moves of the parent, and you write only what changes.
Copy this file to umf/hello.json (or use the ready one in docs/examples/umf/hello-fighter.json):
{
"format": "umf/2",
"id": "hello",
"name": "Hello Fighter",
"author": "you",
"color": "#2a9d8f",
"extends": "kaito",
"palettes": [{ "top": "#2a9d8f", "trim": "#16544d" }],
"moves": [{ "id": "gale", "name": "Sky Gale", "cost": 500 }]
}
What it says:
| Line | Meaning |
|---|---|
format | umf/2 (umf/1 still loads) |
id | Unique, lowercase, no spaces. It is also the file's internal name |
name, author, color | What the select screen shows. color is the card colour |
extends | Inherit everything from kaito (any loaded fighter or kit works) |
palettes | Recolour. Keys are the colour names of the parent's art (top, trim, hair) |
moves | Change a move by id. Here gale keeps its inputs and gets a new name and cost |
2. Where the file goes
- Next to the game: put it in
umf/. No rebuild needed. - Or point to a folder with
UME_UMF_DIR=/path/to/folder. - Built into the game: put it in
assets/chars/, add itsidtoassets/chars/index.jsonif you want a set order, and runcargo run --release.
Run the game and pick Training to test it. Press F2 to show hitboxes.
3. Add a new move
Moves are matched by id, so you can add, change or remove any of them:
"moves": [
{ "id": "gale", "name": "Sky Gale", "cost": 500 },
{ "id": "slide", "remove": true },
{
"id": "crest", "name": "Crest Kick", "input": "F, F, b",
"kind": "special", "anim": "gale",
"hits": [{ "at": 3, "damage": 80, "level": "heavy", "launch": true }]
}
]
inputuses the command syntax:D, DF, F, xis a quarter circle plusx;x+ymeans both at once.kindisnormal,specialorsuper. A normal cancels into specials and supers on hit or block.animmust be the name of an animation in the parent (galehere). Your own animations go in"anims".hits[].atis the frame where the hit goes live.damageis the amount.
More: moves, hits, command syntax.
4. Give it your own look
- Colours only: change
palettes, or addawakeningPalettefor the transformation. - Stats:
"stats": { "life": 1080, "attack": 104 }changes one number and keeps the rest. - Sprites: your own pixel art goes in
assets/chars/sprites/<id>/. See Sprite atlas import and Effect frames. - Profile: a nationality and a short bio in English, Portuguese and Spanish. See Profile.
5. Check it before you play
cargo test --release -p ume-engine --test it wiki_examples::
cargo test --release --test it native_roster_lab:: -- --nocapture
The first command checks the examples in this guide. The second plays every attack of the roster and prints damage and reach.
Not a UMF fighter?
- M.U.G.E.N characters (
.def,.sff,.cns) go inmugen/chars/. They run without changes. See Characters and CNS scripts. - A fighter without sprites: not supported. Every fighter is drawn from pixel-art PNGs, like M.U.G.E.N characters; there is no procedural fallback.
Next
Full UMF reference · Reuse with kits · Make a stage · Wiki home