Sometimes when Ridley starts a pogo, he will telegraph it by playing a sound effect (and the screen shakes for a few frames). This happens when his tail is inside the wall when the pogo starts. The game actually think he hit the ground, since it checks if the tail collided with _any_ blocks, not just the ones at the ground.