Skip to content

Commit f5b3713

Browse files
Merge pull request #15 from anysad/character-offsets-chapter
[ADDITION] Character Offsets chapter
2 parents b1821f6 + 3814f56 commit f5b3713

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Fixing Character Offsets
2+
3+
Uh Oh! Upon using your character in a song, you might have noticed that with each note hit, the character has weird offsets which makes it wobble back and forth. Let's fix that.
4+
5+
## Accessing the Animation Editor
6+
7+
To fix offsets for you character, you first have to access the Animation Editor tool. This can be found in-game by accessing the Debug menu from the main menu (this is bound to `~` by default) and selecting "Animation Editor" option.
8+
9+
Once you have accessed the tool, it might be a little overwhelming at first, but everything is pretty straightforward.
10+
11+
## Fixing the Offsets
12+
13+
The first thing you have to do is click `2` on your keyboard to switch to `Animation Mode` in order to properly fix offsets for each animation. Then, you need to select your character from the `Character` section in the UI box that is located in the top-left corner.
14+
15+
*HINT:* The best thing to do to speed up your process, it to toggle `Onion Skin` mode by pressing `F`. This will show the previous animation played being half transparent. This can help speeding up the proccess, since you will be able to to properly line up the animation with the previous one.
16+
17+
The UI will show you all of the possible controls and shortcuts, to make your proccess of fixing the character offsets much easier.
18+
19+
## Saving Offsets
20+
21+
Once you are happy with your result, simply press `ESC` on your keyboard to save the `Character Data` file.
22+
- Currently there is a bug which makes the file saving system not automatically put character's ID in the file name, which you will have to do yourself. Simply name the file the ID of your character followed by `.json`.
23+
24+
From the ["Creating a Character"](03-02-creating-a-character.md) chapter you will know, that you have to place this character data JSON file in `data/characters`. Then, you can simply use [Hot Reloading](../01-fundamentals/01-05-hot-reloading.md) to check the offsets without restarting the game.

src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- [Character Assets](03-custom-characters/03-01-character-assets.md)
2424
- [Creating a Character](03-custom-characters/03-02-creating-a-character.md)
2525
- [Using a Character in a Song](03-custom-characters/03-02-using-a-character-in-a-song.md)
26+
- [Fixing Character Offsets](03-custom-characters/03-03-fixing-character-offsets.md)
2627

2728
- [Custom Stages](04-custom-stages/04-00-custom-stages.md)
2829
- [Creating a Stage](04-custom-stages/04-01-creating-a-stage.md)

0 commit comments

Comments
 (0)