Property | Type | Description | |
---|---|---|---|
fadeDelay | float | ||
fadeDuration | float | ||
fadeToColor | Color | ||
initialColor | Color | ||
minDistanceBetweenInstances | float |
Method | Description | |
---|---|---|
SpriteTrail ( Sprite sprite, int maxInstances = 15 ) : System | ||
disableSpriteTrail ( bool completeCurrentTrail = true ) : void |
disables the SpriteTrail optionally waiting for the current trail to fade out first
|
|
enableSpriteTrail ( ) : |
enables the SpriteTrail
|
|
render ( Graphics graphics, Camera camera ) : void |
Method | Description | |
---|---|---|
IUpdatable ( ) : void | ||
spawnInstance ( ) : void |
stores the last position for distance calculations and spawns a new trail instance if there is one available in the stack
|
public SpriteTrail ( Sprite sprite, int maxInstances = 15 ) : System | ||
sprite | Sprite | |
maxInstances | int | |
return | System |
public disableSpriteTrail ( bool completeCurrentTrail = true ) : void | ||
completeCurrentTrail | bool | If set to |
return | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
return | void |