C# Class flxSharp.flxSharp.FlxParticle

This is a simple particle class that extends the default behavior of FlxSprite to have slightly more specialized behavior common to many game scenarios. You can override and extend this class just like you would FlxSprite. While FlxEmitter used to work with just any old sprite, it now requires a FlxParticle based class.
Inheritance: FlxSprite
Afficher le fichier Open project: jlorek/flxSharp

Méthodes publiques

Méthode Description
FlxParticle ( ) : System

Instantiate a new particle. Like FlxSprite, all meaningful creation happens during loadGraphic() or makeGraphic() or whatever.

onEmit ( ) : void

Triggered whenever this object is launched by a FlxEmitter. You can override this to add custom behavior like a sound or AI or something.

update ( ) : void

The particle's main update logic. Basically it checks to see if it should be dead yet, and then has some special bounce behavior if there is some gravity on it.

Method Details

FlxParticle() public méthode

Instantiate a new particle. Like FlxSprite, all meaningful creation happens during loadGraphic() or makeGraphic() or whatever.
public FlxParticle ( ) : System
Résultat System

onEmit() public méthode

Triggered whenever this object is launched by a FlxEmitter. You can override this to add custom behavior like a sound or AI or something.
public onEmit ( ) : void
Résultat void

update() public méthode

The particle's main update logic. Basically it checks to see if it should be dead yet, and then has some special bounce behavior if there is some gravity on it.
public update ( ) : void
Résultat void