Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 942 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sprites act weird #332314
07/08/10 18:35
07/08/10 18:35
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
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

Re: Sprites act weird [Re: Roy] #332316
07/08/10 18:45
07/08/10 18:45
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
can you explain what the problem is? I can't really tell from the short description and the screenshots, looks just fine to me


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Sprites act weird [Re: Michael_Schwarz] #332317
07/08/10 18:48
07/08/10 18:48
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
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)


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1