|
|
Re: particles
[Re: jcl]
#112468
02/22/07 08:28
02/22/07 08:28
|
Joined: Apr 2006
Posts: 1,551 Netherlands
D3D
Serious User
|
Serious User
Joined: Apr 2006
Posts: 1,551
Netherlands
|
In the Lite-C Manual Particle effect sample there is error? p.flags |= BRIGHT | MOVE; Code:
// particle function: generates a fading explosion into vel direction // particle function: generates a fading explosion into vel direction function effect_explo(PARTICLE *p) { var temp[3]; vec_randomize(temp,10); vec_add (p.vel_x, temp); p.alpha = 25 + random(25); p.bmap = scatter_map; p.flags |= BRIGHT | MOVE; p.event = part_alphafade; // change to a shorter, faster function }
Oh and why is it that when you have myfile. c and myfile. wdl in the same folder and you edit the myfile.c in Lite-C SED and you set the myfile.c to be executed, it actualy executes myfile.wdl in both debug as well as test-run? What I mean is twice the same name, but different extensions. You say in the manual how to rewrite from c-script -> lite-c code, to drop the code into an empty .c file. Only if it has the same name Lite-C SED will execute the .wdl first.. 
|
|
|
|