On the C64 you could request that the hardware raise an interrupt when the video scan hit a certain vertical position. Then, inside your interrupt routine, you'd quickly alter something on the video display (for example, the positions of the sprites), thus performing seemingly impossible graphics tricks. Of course, you'd also need to set things back to normal ready for the next scan. This is vaguely analogous to juggling two girlfriends.