The Daily Click ::. Forums ::. Klik Coding Help ::. fading lines
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
9th October, 2006 at 18:14:07 -

I'm trying to make instant bullet hits which are drawn using the line object. Each weapon has a range at which it's bullets will be destroyed.

So I have my fastloop which ends in either my dummy bullet running out of range or hitting something, at which point a line is drawn from the gun to the dummy bullet.

What I want to do is for the last little bit before the bullet runs out of range, I'd like the end of my line to become more transparent as opposed to simply ending. Without any resarch, I just want to know if this is possible. Or better yet, if anyone else has done anything like this.

thanks,

Zi-Xiao

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
9th October, 2006 at 19:39:45 -

You're doing it with a fastloop? Retrieve the current loop step, and use it to set transparency on the current trail part.

 
n/a

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
9th October, 2006 at 19:50:22 -

I'm using the drawline object. I'm not sure how to set the transparency of a line using it... Maybe I'm missing something?

Zi-Xiao

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
9th October, 2006 at 19:56:18 -

Sorry, I just skimmed over your post. I've never used drawline.

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
9th October, 2006 at 20:16:07 -

It's buggy, I've heard.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
10th October, 2006 at 11:26:22 -

Ah I got it . I just stretched an alpha image. Problem now is that the alpha image's angle doesn't seem to use the conventional cartesian co-ordinate system to draw itself....

Zi-Xiao

 
n/a
   

Post Reply



 



Advertisement

Worth A Click