CSS Logo XNACS1Lib Library Documentation
XNACS1ParticleEmitter Properties

Game-Themed Introductory Programming Project   

The properties of the XNACS1ParticleEmitter class are listed below. For a complete list of XNACS1ParticleEmitter class members, see the XNACS1ParticleEmitter Members topic.

Public Instance Properties

AttachedPrimitive Gets or Sets the primitive that this emitter is attached to. The emitter's center will be automatically updated each tick to match the attached primitive's center.
AutoEmitEnabled Gets or Sets whether or not particles should automatically be emitted every EmitFrequency ticks.
AutoRemoveDeadParticles Gets or sets whether or not particles with zero life remaining will be automatically deleted from the particle emitter set. Setting a particle's life to negative will ensure it is never deleted via this functionality.
Center (inherited from XNACS1Primitive) Center of the primitive.
CenterX (inherited from XNACS1Primitive) X coordinate of the center position of the primitive.
CenterY (inherited from XNACS1Primitive) Y coordinate of the center position of the primitive.
Color (inherited from XNACS1Primitive) Color of the primitive. (undefined for PrimitiveSet).
CurrentSpriteSheetFrameX (inherited from XNACS1Primitive) Gets or Sets the zero-based current sprite column for sprite sheet drawing.
CurrentSpriteSheetFrameY (inherited from XNACS1Primitive) Gets or Sets the zero-based current sprite row for sprite sheet drawing.
DefaultColor Gets or Sets The default color of emitted particles.
DefaultTexture Gets or Sets The default texture of emitted particles.
EmitFrequency Gets or Sets how many ticks between calls of EmitParticle if AutoEmitEnable = True.
FrontDirection (inherited from XNACS1Primitive) Sets the front direction of the primitive. Setting FrontDireciton will cause the RotateAngle and NormalDirection of the primitive to be updated accordingly. y default, when RotateAngle is 0, FrontDireciton points towards (1,0) [positive X-direction]. E.g., if we set RotateAngle to 90-degrees, FrontDireciton will be updated accordinlgy to (0,1) [positive y-direciton], or rotated 90-degress in the anit-clockwise direction
InitialLife Gets or Sets the default life in ticks for emitted particles.
InitialSize Gets or Sets The default size of emitted particles.
Label (inherited from XNACS1Primitive) Annotated text label to be associated with the primitive.
LabelColor (inherited from XNACS1Primitive) Color of the anontated text label.
MaxBound (inherited from XNACS1Primitive) Upper left corner of the primitive.
MinBound (inherited from XNACS1Primitive) Lower left corner of the Primitive.
NormalDirection (inherited from XNACS1Primitive) Get or Set the normal direction of the primitive. Setting NormalDirection will update RotateAngle and FrontDirection accordingly.
RotateAngle (inherited from XNACS1Primitive) Rotate the primitive by the Angle specified (in degree). After the rotation, the FrontDirection of the primitive will be udpated accordingly. By default, when RotateAngle is 0, FrontDireciton points towards (1,0) [positive X-direction]. E.g., if we set RotateAngle to 90-degrees, FrontDireciton will be updated accordinlgy to (0,1) [positive y-direciton], or rotated 90-degress in the anit-clockwise direction
ShouldTravel (inherited from XNACS1Primitive) Defines if the primitive should move by its current velocity. Defaults to false.
Speed (inherited from XNACS1Primitive) Get/Set the speed (magnitude of the Velocity vector) for the velocity.
Texture (inherited from XNACS1Primitive) Texture file name (without the "." or the extension) to cover the primitive.
TextureTintColor (inherited from XNACS1Primitive) If a primitive has a texture assigned, this will change the tint and or opacity of the texture when drawn, Color.White is no tint or opacity.
UseSpriteSheet (inherited from XNACS1Primitive) Allow the primitive to draw as a sprite sheet.
UseSpriteSheetAnimation (inherited from XNACS1Primitive) Allow the primitive to follow a specified sprite sheet animation sequence.
Velocity (inherited from XNACS1Primitive) Velocity of a primitive. This is a true velocity: with magnitude (speed) and direction for tavel.
VelocityDirection (inherited from XNACS1Primitive) Get/Set the direction of the velocity.
VelocityX (inherited from XNACS1Primitive) Get/Set the x-component of the primitive velocity.
VelocityY (inherited from XNACS1Primitive) Get/Set the y-component of the primitive velocity.
Visible (inherited from XNACS1Primitive) Whether the primitive is visible.

Protected Internal Instance Properties

Size (inherited from XNACS1Primitive) Get/Set width/height of the primitive.
SizeX (inherited from XNACS1Primitive) Width of the primitive.
SizeY (inherited from XNACS1Primitive) Height of the primitive. For PrimitiveCircle (diameter), PrimitiveRectangle (height), PrimitiveSet (undefined).

See Also

XNACS1ParticleEmitter Class | XNACS1Lib Namespace