diff options
Diffstat (limited to 'Tips-and-tricks.md')
-rw-r--r-- | Tips-and-tricks.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tips-and-tricks.md b/Tips-and-tricks.md index a3d8364..2dcaef7 100644 --- a/Tips-and-tricks.md +++ b/Tips-and-tricks.md @@ -8,6 +8,7 @@ This page is for small hints about how to edit pokecrystal that don't need an en - [Make overworld sprites darker at night](#make-overworld-sprites-darker-at-night) - [Enemy trainers have maximum happiness for a powerful Return](#enemy-trainers-have-maximum-happiness-for-a-powerful-return) - [Lowercasing Pokémon names cuts off their first letter](#lowercasing-pokémon-names-cuts-off-their-first-letter) +- [Prevent NPCs' heads from flipping when they walk down](#prevent-NPCs-heads-from-flipping-when-they-walk-down) ## Change the odds of encountering a shiny Pokémon @@ -84,3 +85,23 @@ Edit [engine/pokemon/move_mon.asm](../blob/master/engine/pokemon/move_mon.asm): ## Lowercasing Pokémon names cuts off their first letter If you simply lowercase all the names in [data/pokemon/names.asm](../blob/master/data/pokemon/names.asm) and rebuild the ROM, the first letter of their names may be missing. The cause is changing `"FARFETCH'D"` to `"Farfetch'd"`, because `'d` is actually a single character. The fix is to pad its name to the same length as all the rest with an `@`, so that it becomes `"Farfetch'd@"`. + + +## Prevent NPCs' heads from flipping when they walk down + +When NPCs walk up or down, they flip horizontally every other frame to create the alternating left-right step animation. But for NPCs with asymmetrical faces, this can look awkward when they walk down. + +To disable this flipping for all overworld sprites, edit [data\sprites\facings.asm](../blob/master/data/sprites/facings.asm): + +```diff + FacingStepDown3: ; walking down 2 + db 4 ; # +- db 0, 8, X_FLIP, $80 +- db 0, 0, X_FLIP, $81 ++ db 0, 0, 0, $80 ++ db 0, 8, 0, $81 + db 8, 8, RELATIVE_ATTRIBUTES | X_FLIP, $82 + db 8, 0, RELATIVE_ATTRIBUTES | X_FLIP, $83 +``` + +Note that the player sprite in the naming screen and the Town Map are unaffected by this. Also, this prevents the bicycling player sprite from moving side to side. |