| Package | org.flintparticles.twoD.actions |
| Class | public class TweenPosition |
| Inheritance | TweenPosition ActionBase |
| Property | Defined by | ||
|---|---|---|---|
| endX : Number
The X value for the particle's position when its energy is 0.
| TweenPosition | ||
| endY : Number
The y value for the particle's position when its energy is 0.
| TweenPosition | ||
![]() | priority : int
Returns a default priority of 0 for this action.
| ActionBase | |
| startX : Number
The x position for the particle's position when its energy is 1.
| TweenPosition | ||
| startY : Number
The y position for the particle's position when its energy is 1.
| TweenPosition | ||
| Method | Defined by | ||
|---|---|---|---|
|
TweenPosition(startX:Number = 0, startY:Number = 0, endX:Number = 0, endY:Number = 0)
The constructor creates a TweenPosition action for use by an emitter.
| TweenPosition | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
Calculates the current position of the particle based on it's energy.
| TweenPosition | ||
| endX | property |
endX:Number [read-write]The X value for the particle's position when its energy is 0.
Implementation public function get endX():Number
public function set endX(value:Number):void
| endY | property |
endY:Number [read-write]The y value for the particle's position when its energy is 0.
Implementation public function get endY():Number
public function set endY(value:Number):void
| startX | property |
startX:Number [read-write]The x position for the particle's position when its energy is 1.
Implementation public function get startX():Number
public function set startX(value:Number):void
| startY | property |
startY:Number [read-write]The y position for the particle's position when its energy is 1.
Implementation public function get startY():Number
public function set startY(value:Number):void
| TweenPosition | () | constructor |
public function TweenPosition(startX:Number = 0, startY:Number = 0, endX:Number = 0, endY:Number = 0)The constructor creates a TweenPosition action for use by an emitter. To add a TweenPosition to all particles created by an emitter, use the emitter's addAction method.
ParametersstartX:Number (default = 0) — The x value for the particle's position when its energy is 1.
|
|
startY:Number (default = 0) — The y value for the particle's position when its energy is 1.
|
|
endX:Number (default = 0) — The x value of the particle's position when its energy is 0.
|
|
endY:Number (default = 0) — The y value of the particle's position when its energy is 0.
|
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates the current position of the particle based on it's energy.
This method is called by the emitter and need not be called by the user.
Parametersemitter:Emitter — The Emitter that created the particle.
|
|
particle:Particle — The particle to be updated.
|
|
time:Number — The duration of the frame - used for time based updates.
|
See also