
Changing the particles/emitter properties you can create many different effects.
In the Macromedia site ( using this link ) you can download a "particles tester" where you can change values of properties and look to the result. It's a: "must to use".

Many propeties are not very significatives. The more importants are (look the sintax to use in the Director Help):
The lifeTime property defines the length of time that the particles exist after they are emitted, in milliseconds. The default is 10,000 milliseconds.
The sizeRange.start property specifies the size of the particles at the beginning of their lifetime. The default is 1.0.
The sizeRange.end property specifies the size of the particles at the end of their lifetime. The default is also 1.0.
The colorRange.start property specifies the color of the particles at the beginning of their lifetime. The color will tween toward the colorRange.end value over time . The default is white.
The colorRange.end property specifies the color of the particles at either the end of their lifetime . The default is also white.
The gravity property indicates how much gravity to apply to the motion of each particle. The value is a 3D vector, with the length of the vector indicating the amount of force to be applied.
The mode property indicates how the particles are emitted. The possible values are #burst and #stream . If the value is set to #burst , all the particles are emitted at once. If it's set to #stream , particles are emitted in every rendered frame.
The loop property indicates whether particles die when their lifetime expires ( FALSE ) or are reborn at the emitter location ( TRUE ).
The numParticles property indicates the number of particles to emit. The value is an integer. The default is 1000.
The direction property indicates the direction in which the particles should be emitted. The value is a 3D vector. If the vector is vector(0,0,0) , the default, particles are emitted in random directions distributed over a sphere, so they appear to be emitted in all directions.
The angle property indicates the angle over which particles are emitted. T The value should be a floating-point number from 0 to 180 degrees. The default is 180 degrees. An angle setting of 10 would cause the particles to be emitted over an area of 20 degrees, centered on 12:00.
The minSpeed property indicates the minimum speed at which particles are emitted. Any given particle is emitted with a speed randomly selected between the minSpeed and the maxSpeed . The value is a floating-point number greater than zero. The default is 1.0.
The maxSpeed property indicates the maximum speed at which particles are emitted. The value is a floating-point number greater than zero. The default is 1.0.
In our demo we have a flame. The code is:
flame1 = myworld.newModelResource("flame", #particle)
myworld.newModel("flame", flame1)
flame1.emitter.maxSpeed = 60
flame1.emitter.numParticles = 250
flame1.emitter.angle = 2
flame1.emitter.direction = vector( 0, 1, 0)
flame1.lifeTime = 1000
flame1.colorRange.start = rgb(255, 255, 128)
flame1.colorRange.end = rgb(192, 96, 0)
flame1.sizeRange.start = 20
myworld.modelResource("flame").emitter.region = [auxs0.transform.position]
Walk as usual using the arrow keys.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
