Sprites act weird

Posted By: Roy

Sprites act weird - 07/08/10 18:35

Hello,

With script, I've created a sprite that moves from left to right over a terrain. Under the terrain is another terrain (a flat sea).

The sprite has to move over the terrain and is transparent.
But something strange is happening.


The right image (screen 2) is as it is supposed to be. This only happens in the middle rows.
The left image (screen 1) is what happens in the outer rows.

I think it has something to do with the distance to the camera. Does someone know the problem or what to do?

Roy
Posted By: Michael_Schwarz

Re: Sprites act weird - 07/08/10 18:45

can you explain what the problem is? I can't really tell from the short description and the screenshots, looks just fine to me
Posted By: Roy

Re: Sprites act weird - 07/08/10 18:48

In the left image, the water is visible through the sprite. In the right image, it is not. I want the sprite to be like it is in the right image: you can't see the sea through the sprite.
(of course, the sprite has to be transparent)

It is 'normally' transparent in the middle rows of the terrain (so the rows that are closest to the camera).
It is 'sea' transparent in the outer rows (furthest from the camera)
© 2024 lite-C Forums