Coastal Flooding

From Glitch City Wiki
Jump to navigation Jump to search
Miscellaneous glitches of Pokémon Red and Blue and Pokémon Yellow

Amazing Man (Red and Blue only) | Cable Club escape glitch | Celadon looping map trick | Champion Blue music muting glitch | Coastal Flooding | Confusion and Substitute glitch | Cooltrainer move | Cycling based glitch maps | Escape sprite handling glitch | Evolve without an evolutionary stone (Red and Blue only) | Evolving Raichu (Red and Blue only) | Expanded item pack | Expanded Pokédex | Focus Energy glitch | Get stuck in a wall | Ghost Bicycle glitch | Glitch encounter system | Glitch City RAM Manipulation | Infinite Blaine Door | Introduction Nidorino glitch (Red and Blue only) | Invisible PCs (Red and Blue only) | Invisible tree glitch | Item stack duplication glitch | Mute the music in the Pokémon League | Partial trapping move link battle glitch | Pokémon Tower Pokédex glitch | PP underflow glitches | Recovery move glitch | Rival's effect | See a Ghost without a Silph Scope | Selfdestruct and Substitute glitch | Silph Co. PC Glitch | Slot machine glitch | Stand on a tree | Statue behavior glitch (Red and Blue only) | Super effective move AI flaw (Red and Blue only) | Super Glitch | Surf down glitch | Swift miss glitch | Transform assumption glitch | Transform Empty Move Glitch | Trick Zone | Vending machine purchase glitch | Walk around with only fainted Pokémon (Red and Blue only) | Walking lag glitch | Walk on water through Surf | Walking Pikachu happiness glitch (Yellow only) | Wild appeared! | ZZAZZ Glitch

(view, talk, edit)
This article lacks images.

Emulator screenshots are preferred to pictures taken with a camera or a capture card; however, a medium-quality image is better than no image.

Any contributions are highly appreciated!

This glitch involves a flaw with the map borders.


  • Access to Cycling Road.


  1. Go to Cycling Road though the Celadon City entrance.
  2. Bike to the left until the player is at the edge of the map. Left of the maps edge, you will see trees.
  3. Once there, bike downwards until water is on the left of the maps edge.
  4. Turn around and bike upwards again.
  5. Back up Cycling Road, some of the map's edge is now water.


This glitch can also be observed in Route 5, in both the east and west boundaries.


Each map has a background tile, which is used to fill the area outside the map boundary. This glitch happens when connecting maps have different background tiles.

When the player enters a map, either through a warp or through a map connection, a "tile block map" is built for the entire map. The tile block map is larger than the actual map by 6 steps in all four directions, so that it always covers the entire screen no matter where the player is on the map. Initially the tile block map is filled with the background tile, then data from the current map is loaded in the middle, and data from connecting maps are loaded on the corresponding borders. Normally this ensures that the tile block maps of connecting maps will always agree; however, tiles outside the boundaries of both maps are left as the background tile for the current map, which may be different for connecting maps.

This is the case for the north part of Cycling Road: The background tile of Route 16 (Cycling Road entrance) is trees, and the background tile of Route 17 (the sloped part) is water. When crossing the map boundary, the map doesn't suddenly change, because the tilemap in the VRAM is only updated as needed. But as the player takes steps, part of the background will scroll onto the screen, and whether trees or water is loaded depends on which map the player begins the step on.

Opening a text box (e.g. the Start menu) switches to another tilemap in the VRAM which is updated every frame, allowing the player to see the actual background tiles for the current map. Notice that the tilemap is still only updated at the beginning of each step or after a text box is closed, so if the player opens the Start menu immediately after crossing the map boundary, the background tiles for the previous map is displayed instead; only after taking one more step or opening the Start menu the second time will the background tiles correspond to the current map.