6 registered members (AndrewAMD, rki, Mino, Martin_HH, squik, Ayumi),
1,126
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Alpha Problem?
#147773
08/13/07 21:53
08/13/07 21:53
|
Joined: Nov 2006
Posts: 141 South Africa
quasarchangel
OP
Member
|
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: MrCode]
#147775
08/14/07 01:12
08/14/07 01:12
|
Joined: Sep 2002
Posts: 700 Orange County, CA
LogantheHogan
Developer
|
Developer
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
OP
Member
|
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. ![](/ubbthreads/images/graemlins/confused.gif)
Last edited by quasarchangel; 08/14/07 12:15.
God DID give us a manual on how to change this world...
|
|
|
|