| Package | org.flintparticles.twoD.activities |
| Class | public class MoveEmitter |
| Inheritance | MoveEmitter ActivityBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this activity. | ActivityBase | |
| x : Number
The x coordinate of the velocity to move the emitter,
in pixels per second
| MoveEmitter | ||
| y : Number
The y coordinate of the velocity to move the emitter,
in pixels per second
| MoveEmitter | ||
| Method | Defined By | ||
|---|---|---|---|
MoveEmitter(x:Number = 0, y:Number = 0)
The constructor creates a MoveEmitter activity for use by
an emitter. | MoveEmitter | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActivityBase | |
![]() | initialize(emitter:Emitter):void
This method does nothing. | ActivityBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActivityBase | |
[override]
This method does nothing. | MoveEmitter | ||
| x | property |
x:NumberThe x coordinate of the velocity to move the emitter, in pixels per second
public function get x():Number public function set x(value:Number):void| y | property |
y:NumberThe y coordinate of the velocity to move the emitter, in pixels per second
public function get y():Number public function set y(value:Number):void| MoveEmitter | () | Constructor |
public function MoveEmitter(x:Number = 0, y:Number = 0)The constructor creates a MoveEmitter activity for use by an emitter. To add a MoveEmitter to an emitter, use the emitter's addActvity method.
Parametersx:Number (default = 0) — The x coordinate of the velocity to move the emitter,
in pixels per second.
| |
y:Number (default = 0) — The y coordinate of the velocity to move the emitter,
in pixels per second.
|
See also
| update | () | method |
override public function update(emitter:Emitter, time:Number):voidThis method does nothing. Derived classes override this method to alter the state of the emitter every frame.
Parameters
emitter:Emitter — The Emitter.
| |
time:Number — The duration of the frame - used for time based updates.
|