Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (VoroneTZ, dr_panther, TedMar, vicknick), 833 guests, and 4 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 Problem? #147773
08/13/07 21:53
08/13/07 21:53
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline OP
Member
quasarchangel  Offline OP
Member

Joined: Nov 2006
Posts: 141
South Africa
I seem to be having a problem with the alpha setting of a sprite that I create. When I use the code below the line is completely invisible, if I set the alpha to 55 it is visible. Can anyone help me see why I can't make it lower?

bmap dot_bmp ="dot.bmp";

function delete_line()
{
my.alpha - = 5*time;
if(my.alpha < = 0)
{
my.lifespan = 0;
}
}

function draw_red_line()
{
my.bmap = dot_bmp;
my.move = off;
my.streak = on;
my.bright = off;
my.transparent = on;
my.alpha = 50;
my.size = 0.25;
my.function = delete_line;
}


God DID give us a manual on how to change this world...
Re: Alpha Problem? [Re: quasarchangel] #147774
08/13/07 23:08
08/13/07 23:08
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Why are you using particles? You can emulate draw_line3d by using draw_line and vec_to_screen.

Re: Alpha Problem? [Re: MrCode] #147775
08/14/07 01:12
08/14/07 01:12
Joined: Sep 2002
Posts: 700
Orange County, CA
L
LogantheHogan Offline
Developer
LogantheHogan  Offline
Developer
L

Joined: Sep 2002
Posts: 700
Orange County, CA
Quote:

Why are you using particles?




There are plenty of reasons why he'd use particles over these functions. If it's a laser beam, or a smoke trail. If it's just a line, I agree, use those other functions.

As for your problem, wow, that is really strange. I can't see anything wrong with it. If no one else points anything out, I'd post something in the bug hunt forum (along with some screenshots of both alpha = 50 and alpha = 55).

Re: Alpha Problem? [Re: LogantheHogan] #147776
08/14/07 12:10
08/14/07 12:10
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline OP
Member
quasarchangel  Offline OP
Member

Joined: Nov 2006
Posts: 141
South Africa
Thanks for the replies. I use it as a bullet line for a gun script. I don't think a normal line would do the trick, but I have not tried something like that. Just another thing, a panel I use for fading into and out of a black screen does the same thing. Everytime it gets to 50, and below, its invisible.

EDIT | Hmmmmmmmm, its working now... I am seriously confused.

Last edited by quasarchangel; 08/14/07 12:15.

God DID give us a manual on how to change this world...
Re: Alpha Problem? [Re: quasarchangel] #147777
08/14/07 13:46
08/14/07 13:46
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
do you have 6.2 pro?


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Alpha Problem? [Re: Captain_Kiyaku] #147778
08/14/07 17:04
08/14/07 17:04
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline OP
Member
quasarchangel  Offline OP
Member

Joined: Nov 2006
Posts: 141
South Africa
Nope 7.04


God DID give us a manual on how to change this world...
Re: Alpha Problem? [Re: quasarchangel] #147779
08/14/07 18:02
08/14/07 18:02
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Quote:

Nope 7.04




Than I would change your 3dgs version inside your profile

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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