Tyrbo Make your game

A top-down RPG character sprite sheet, in your game’s look

A top-down RPG hero needs to face the player, walk away from them and cross the screen both ways, and every one of those frames has to look like the same person in the same world. Ask the asset CLI for the look of your map first, then for the hero, and one command gives you every facing and every clip on one sheet, with the files your engine needs to play it.

npm install -g @tyrbo/asset

Make a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.

The commands

asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down
asset character ranger "a young ranger in a green hood" --clips idle,walk
asset character ranger-fight "a young ranger in a green hood" --of ranger.png --clips attack,hit,defeat

Made by the CLI, not drawn for this page

Real files the asset CLI wrote, each under the command that made it.

walk-up, 12 frames at 11 a secondasset character ranger "a young ranger in a green hood" --clips idle,walk
The ranger facing the camera: a green hood, a quiver and leather boots
The same ranger from the side
The same ranger from behind, the quiver on her back
A top-down hand-painted forest clearing: a cottage under a great tree, a pond, a deer and hens, a ranger on the path
asset look grove "hand-painted fantasy forest, soft dappled light, top-down" --view top-down

What one command makes

With the look set to a top-down camera, asset character draws the hero's front from your words, then draws the back and the side from that front, so the hood, the quiver and the boots carry over instead of being reinvented for each view. Each clip you name is then made for every facing the view wants: a walk down, a walk up and a walk to the side, an idle for each. They are cut into frames and packed onto one sheet, ranger-sheet.png, beside its atlas and ranger.anim.json, the record that says which frames make which clip and how fast it plays.

The side facing is drawn once, facing right. Your game mirrors it for the walk left, the way top-down RPGs have always done, so the two never drift apart.

Why the look comes first

A top-down hero is small on screen and stands on a busy map. If its outline, palette or light differ from the grass and the cottages, it reads as pasted on. asset look draws one scene of your map with a hero, an enemy and a few things on its ground, and keeps it. The character is then asked in that scene's style and camera, so the hero you get was drawn for that map. The forest on this page and the ranger walking across it came from the same run, with no style words repeated in the character's ask.

Frames your engine can trust

Every frame on the sheet is one size and stands on one ground line, so a character placed by its feet never bobs or slides as its clip plays. The atlas gives each frame's box, its anchor on that ground line, and how tall the body stands in it, so a hero holding a long spear and one holding a dagger are drawn at the same height in your game. Clips filmed by a video model are checked for how well they loop and how much they move, and a take that does not pass is filmed once more.

More clips, later

For a fight, ask for a second set from the first picture: --of ranger.png keeps the design exactly, and the attack, hit and defeat come back on a sheet of their own. A file already there is never drawn over; use --replace only when you want a whole set drawn again, after a change to the look or the design. For a pixel look, the clips are drawn as poses rather than filmed, so the pixels stay crisp.

Questions people ask

How many directions does a top-down sheet have?

Three are drawn: toward the camera, away from it, and to the side. The side is mirrored for the other side, which gives the four directions most top-down RPGs move in.

Can I use my own hero design?

Yes. Pass a picture of it with --of and the character is drawn as that picture draws it, its design, colours and outline kept, in your game’s look. A concept sheet works well.

What did the ranger on this page cost?

The whole set, three facings drawn and walk and idle for each, cost the credits shown under its command, from one ask. A call asked again is answered from your cache for free.

Install it, then ask for the look.

Get an asset key

Make a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.