| Package | org.flintparticles.common.actions |
| Class | public class TargetScale |
| Inheritance | TargetScale ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| rate : Number
Adjusts how quickly the particle reaches the target scale. | TargetScale | ||
| targetScale : Number
The target scale for the particle. | TargetScale | ||
| Method | Defined By | ||
|---|---|---|---|
TargetScale(targetScale:Number = 1, rate:Number = 0.1)
The constructor creates a TargetScale action for use by an emitter. | TargetScale | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Adjusts the scale of the particle based on its current scale, the target
scale and the time elapsed. | TargetScale | ||
| rate | property |
rate:NumberAdjusts how quickly the particle reaches the target scale. Larger numbers cause it to approach the target scale more quickly.
public function get rate():Number public function set rate(value:Number):void| targetScale | property |
targetScale:NumberThe target scale for the particle. 1 is normal size.
public function get targetScale():Number public function set targetScale(value:Number):void| TargetScale | () | Constructor |
public function TargetScale(targetScale:Number = 1, rate:Number = 0.1)The constructor creates a TargetScale action for use by an emitter. To add a TargetScale to all particles created by an emitter, use the emitter's addAction method.
ParameterstargetScale:Number (default = 1) — The target scale for the particle. 1 is normal size.
| |
rate:Number (default = 0.1) — Adjusts how quickly the particle reaches the target scale.
Larger numbers cause it to approach the target scale more quickly.
|
See also
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidAdjusts the scale of the particle based on its current scale, the target scale and the time elapsed.
This method is called by the emitter and need not be called by the user
Parameters
emitter: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