OK, first off, perhaps this is an obvious technique. If so, apologies. Second, no, I haven't implemented it yet. I'm in the middle of a move and things are a bit chaotic. So, having said all that, allow me to speculate.
I was studying Magical Chase the other day, and watching the farthest background layer, it occurred to me that it's possible to have at least two layers of overlapping, multidirectional parallax without resorting to dynamic tiles or sprites, if you are careful about your art. This technique relies on a combination of changing the background color per scan line, changing the x offset per scan line and duplicating scan lines.
First, the background color. This is pretty obvious. Use a gradient, and offset the gradient start to allow it to scroll vertically. Because the gradient doesn't vary horizontally, you don't need to worry about x-scrolling.
Now lets add some tiles. Excuse the horrible copy paste art.
It's pretty common in PCE games to horizontally scroll various portions of the screen at different rates. This is very easy to do in huc, but it doesn't get you vertical parallax. Some games will shift these regions up and down as the screen scrolls up and down, but the layers remain constant in terms of size and position to one another (see
). So, for now we'll set it up so the cloud area scrolls slower along the x axis than the castle area below.
OK, awesome! So how do we get the clouds to scroll at a slower speed vertically than the castle? We selectively duplicate the line just below the clouds, but above where the castle scroll region begins. By duplicating this line, we can move the castle region up or down by the number of lines we duplicate.
Now, with some book keeping to keep the gradient scroll vertically scrolling at the same rate as the cloud vertical scroll rate, it appears we have a complete background layer that overlaps with the castle layer, but scroll independently. The only caveat is that the castle layer can move no higher than the bottom of the cloud layer. Depending on how much you duplicate the line, this could be a great deal of vertical scrolling. Additionally, you could always use sprite caps on the top of the castle layer to allow a bit over lap between the castles and the clouds. Even without that though, it should still appear as two completely independently overlapping layers.
Any thoughts? Am I completely retarded?
EDIT: clarification