| Package | org.flintparticles.twoD.activities |
| Class | public class FollowDisplayObject |
| Inheritance | FollowDisplayObject ActivityBase Object |
| Property | Defined By | ||
|---|---|---|---|
| displayObject : DisplayObject
The display object that the emitter follows. | FollowDisplayObject | ||
![]() | priority : int
Returns a default priority of 0 for this activity. | ActivityBase | |
| renderer : DisplayObject
The DisplayObject whose coordinate system the DisplayObject's position is converted to. | FollowDisplayObject | ||
| Method | Defined By | ||
|---|---|---|---|
FollowDisplayObject(displayObject:DisplayObject = null, renderer:DisplayObject = null)
The constructor creates a FollowDisplayObject activity for use by
an emitter. | FollowDisplayObject | ||
![]() | 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. | FollowDisplayObject | ||
| displayObject | property |
displayObject:DisplayObjectThe display object that the emitter follows.
public function get displayObject():DisplayObject public function set displayObject(value:DisplayObject):void| renderer | property |
renderer:DisplayObjectThe DisplayObject whose coordinate system the DisplayObject's position is converted to. This is usually the renderer for the particle system created by the emitter.
public function get renderer():DisplayObject public function set renderer(value:DisplayObject):void| FollowDisplayObject | () | Constructor |
public function FollowDisplayObject(displayObject:DisplayObject = null, renderer:DisplayObject = null)The constructor creates a FollowDisplayObject activity for use by an emitter. To add a FollowDisplayObject to an emitter, use the emitter's addActvity method.
ParametersdisplayObject:DisplayObject (default = null) — The display object whose coordinate system the DisplayObject's position is
converted to. This is usually the renderer for the particle system created by the emitter.
| |
renderer:DisplayObject (default = null) |
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.
|