diff options
-rw-r--r-- | Remove-sprites-head-flipping-when-walking-down-(needs-more-edits).md | 18 | ||||
-rw-r--r-- | Tips-and-tricks.md | 21 |
2 files changed, 21 insertions, 18 deletions
diff --git a/Remove-sprites-head-flipping-when-walking-down-(needs-more-edits).md b/Remove-sprites-head-flipping-when-walking-down-(needs-more-edits).md deleted file mode 100644 index 55339a3..0000000 --- a/Remove-sprites-head-flipping-when-walking-down-(needs-more-edits).md +++ /dev/null @@ -1,18 +0,0 @@ -When a sprite walks down, it flips horizontally every other frame to create the walking animation. But the 2 sprites that make the head don't need to flip and this feature can be removed to keep unsymmetrical features from flipping. This will affect all overworld sprites - -Open `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 -``` - -**ToDo:** -- The bike sprite could do without this effect so it moves side to side as usual -- The player sprite in the naming screen and the pokegear map are unaffected by this
\ No newline at end of file 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. |