Property | Type | Description | |
---|---|---|---|
bounce | float | ||
frequency | float | ||
gravity | float | ||
lifespan | float | ||
maxParticleSpeed | FlxPoint | ||
maxRotation | float | ||
minParticleSpeed | FlxPoint | ||
minRotation | float | ||
on | bool | ||
particleClass | Object | ||
particleDrag | FlxPoint |
Property | Type | Description | |
---|---|---|---|
_counter | uint | ||
_explode | bool | ||
_quantity | uint | ||
_timer | float | ||
target |
Method | Description | |
---|---|---|
FlxEmitter ( float X, float Y, uint Size, |
||
at ( |
||
destroy ( ) : void | ||
emitParticle ( ) : void | ||
kill ( ) : void | ||
makeParticles ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, bool Multiple = false, uint Quantity = 50, float Rotation = 1f, float Collide = 0.8f ) : |
Create the particles to be used
|
|
setRotation ( float Min, float Max ) : void | ||
setSize ( uint Width, uint Height ) : void | ||
setXSpeed ( float Min, float Max ) : void | ||
setYSpeed ( float Min, float Max ) : void | ||
start ( bool Explode = true, float Lifespan, float Frequency = 0.1f, uint Quantity ) : void | ||
update ( ) : void |
public FlxEmitter ( float X, float Y, uint Size, |
||
X | float | |
Y | float | |
Size | uint | |
Target | ||
return | System |
public makeParticles ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, bool Multiple = false, uint Quantity = 50, float Rotation = 1f, float Collide = 0.8f ) : |
||
Graphic | Microsoft.Xna.Framework.Graphics.Texture2D | |
Multiple | bool | Whether or not the Texture contains multiple sprites for particles |
Quantity | uint | The number of particles to generate |
Rotation | float | The amount of rotation in degrees per frame, so keep this number low |
Collide | float | The collidability of the particle, 1 = Full and 0 = None |
return |
public setRotation ( float Min, float Max ) : void | ||
Min | float | |
Max | float | |
return | void |
public setSize ( uint Width, uint Height ) : void | ||
Width | uint | |
Height | uint | |
return | void |
public setXSpeed ( float Min, float Max ) : void | ||
Min | float | |
Max | float | |
return | void |
public setYSpeed ( float Min, float Max ) : void | ||
Min | float | |
Max | float | |
return | void |
public start ( bool Explode = true, float Lifespan, float Frequency = 0.1f, uint Quantity ) : void | ||
Explode | bool | |
Lifespan | float | |
Frequency | float | |
Quantity | uint | |
return | void |