On Wed, 18 Mar 1998, MagerValp wrote: > but the right edge is the problem. I could place an opaque sprite that > would cover them, but since I need all the sprites for the characters > I'm trying to figure out a way to do this without sacrificing a > sprite. Ideas, anyone? Well, you could try Uridium's approach. That's the game where you fly on a space station with a smaller fighter and shoot enemy fighters. On the background, there is black space with some stars that scroll at different speeds or stay in fixed positions (normal parallax scrolling). The ship's shadow is clipped when it would cover the black space. How is that possible? Actually most of the space station is in the background color, and only the structures on it are painted with multicolor 1 and 2, which stay under the shadow sprite even if the background has priority over it. Character color is used for some shadows on the space station, and the ship's shadow will be behind them, but it doesn't matter, because both shadows are in character color. The black space is in character color and clips the shadow sprite. What I'm suggesting is that you use the character color sparingly on the playground and use it to clip the sprites off at the right. Or, if you cannot do that, use several sprite shapes to trade memory for the amount of CPU needed for the clipping. Marko
Archive generated by hypermail 2.1.1.