Skip to content

Instantly share code, notes, and snippets.

@hcarty
Last active June 28, 2020 20:29
Show Gist options
  • Save hcarty/3cf8a652dab7ae83966742b9526e626c to your computer and use it in GitHub Desktop.
Save hcarty/3cf8a652dab7ae83966742b9526e626c to your computer and use it in GitHub Desktop.
Orx smoke trail example
; Add SmokeTrail as a child object, adjusting the position of the spawner as needed, to get a smoke trail
; or exhaust effect.
[SmokeTrail]
Spawner = SmokeSpawner
[SmokeSpawner]
Object = SmokeParticle
Position = (-17, 0, -1)
UseRelativeSpeed = true
ObjectSpeed = (1, 7, 0) ~ (-7, -7, 0)
WaveDelay = .025
WaveSize = 3 ~ 7
[SmokeGraphic]
Texture = pixel
Pivot = center
[SmokeParticle]
Graphic = SmokeGraphic
Position = (0, -1, 0) ~ (0, 1, 0)
Scale = 2 ~ 7
Alpha = .7
; Brown smoke
;HSV = (0.07, 1, .59) ~ (0.13, 1, 0.59)
; Gray smoke
HSV = (0, 0, 0.4) ~ (0, 0, 0.6)
AngularVelocity = -90 ~ 90
LifeTime = 2 ~ 4
FXList = SmokeFX
[SmokeFX]
SlotList = SmokeFade
[SmokeFade]
Type = alpha
StartValue = 0
EndValue = -1
StartTime = 0
EndTime = @SmokeParticle.LifeTime
Curve = linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment