diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-25 17:33:51 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-25 17:33:51 -0400 |
commit | 99b7cb345e5b7360e9ee7b1a603de19a77b5950b (patch) | |
tree | 9dd69a3cf0545b0e283b282df84756df284355db | |
parent | bdb357755c829fa3250e4061c9f9b866cade000e (diff) |
#OldGenFactOfTheDay
-rw-r--r-- | Tips-and-tricks.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tips-and-tricks.md b/Tips-and-tricks.md index 2f195b1..dd0f891 100644 --- a/Tips-and-tricks.md +++ b/Tips-and-tricks.md @@ -5,6 +5,7 @@ This page is for small hints about how to edit pokecrystal that don't need an en - [Change the odds of encountering a shiny Pokémon](#change-the-odds-of-encountering-a-shiny-pokémon) - [Stop the blue palette from animating its white hue](#stop-the-blue-palette-from-animating-its-white-hue) +- [Animate tiles even when textboxes are open](#animate-tiles-even-when-textboxes-are-open) - [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) @@ -35,6 +36,29 @@ There are eight palettes used for tilesets: `GRAY`, `RED`, `GREEN`, `WATER`, `YE To stop it, edit [engine/tilesets/tileset_anims.asm](../blob/master/engine/tilesets/tileset_anims.asm) and replace all the instances of `dw NULL, AnimateWaterPalette` with `dw NULL, WaitTileAnimation`. +## Animate tiles even when textboxes are open + +Some tiles in tilesets are animated: water, flowers, whirpools, waterfalls, etc. In Gold and Silver they animated even when textboxes were open, but not in Crystal. To re-enable this, edit `AnimateTileset` in [home/video.asm](../blob/master/home/video.asm): + +```diff + AnimateTileset:: + ; Only call during the first fifth of VBlank + + ldh a, [hMapAnims] + and a + ret z + +-; Back out if we're too far into VBlank +- ldh a, [rLY] +- cp LY_VBLANK +- ret c +- cp LY_VBLANK + 7 +- ret nc +``` + +(via [Crystal_](https://twitter.com/crystal_rby)'s [#OldGenFactOfTheDay](https://twitter.com/crystal_rby/status/1250089272725712904)) + + ## Make overworld sprites darker at night Edit [gfx/overworld/npc_sprites.pal](../blob/master/gfx/overworld/npc_sprites.pal): |