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
1 registered members (AndrewAMD), 953 guests, and 5 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
Alpha doesn't work #326571
06/01/10 17:36
06/01/10 17:36
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,

I've just written the simplest of functions, and it doesn't work...
I was trying to create a window with an alpha channel. The window is a sprite.
The action is:

action env_Glass01()
{
set(me, TRANSLUCENT);
my.alpha = 50;
}

This works, but as soon as I set the alpha below 50, the window becomes invisible. All values higher than 50 work fine.
Does anyone know how this is possible?

Thanks,
Roy

PS. I have version 7.84

Re: Alpha doesn't work [Re: Roy] #326572
06/01/10 17:40
06/01/10 17:40
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
What do you mean with "window"? You dont can add a action to a "window".
You use panels or you mean the enginewindow?

Re: Alpha doesn't work [Re: Widi] #326574
06/01/10 17:42
06/01/10 17:42
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
I mean a window, like in a house.
It's a transparent glass plate, through which you can look wink


Re: Alpha doesn't work [Re: Widi] #326575
06/01/10 17:43
06/01/10 17:43
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
he means window as in building windows grin

check d3d_alpharef from the manual


3333333333
Re: Alpha doesn't work [Re: Widi] #326576
06/01/10 17:43
06/01/10 17:43
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
I think it is an action attached to an entity like a glass or?
maybe u just cant see it below 50?


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Alpha doesn't work [Re: Quad] #326579
06/01/10 17:47
06/01/10 17:47
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
Thanks Quadraxas, it works!
By setting that variable to 0, I can use every alpha value.
Isn't it somewhat strange that d3d_alpharef is by default set to 270? Does it have a reason?

Re: Alpha doesn't work [Re: Roy] #326731
06/02/10 16:56
06/02/10 16:56
Joined: May 2010
Posts: 23
Germany
h34dl4g Offline
Newbie
h34dl4g  Offline
Newbie

Joined: May 2010
Posts: 23
Germany
Originally Posted By: Roy

Isn't it somewhat strange that d3d_alpharef is by default set to 270? Does it have a reason?


Default 270?
Its default is 128 i think, since its only possible between 0 and 255.
Why 128? Because its just the middle^^


1338, beyond leet.

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