C# Класс 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.
Наследование: FlxSprite
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

FlxParticle() публичный Метод

Instantiate a new particle. Like FlxSprite, all meaningful creation happens during loadGraphic() or makeGraphic() or whatever.
public FlxParticle ( ) : System
Результат System

onEmit() публичный Метод

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
Результат void

update() публичный Метод

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
Результат void