private void CustomInitialize() { lifeSecondsRemaining = EffectDurationSeconds; SinkSprite.Visible = true; smokeMed = EasyEmitter.BuildExplosion(GlobalContent.EffectChains["ExplosionSmokeMed"], EmitterPower.Medium, 20f); smokeMed.AttachTo(this, false); smokeMed.RelativeZ = 10f; smokeSmall = EasyEmitter.BuildExplosion(GlobalContent.EffectChains["WoodParticle"], EmitterPower.Large, 2f, 360f, -4f, 8f); smokeSmall.AttachTo(this, false); smokeSmall.RelativeZ = 20f; ripples = EasyEmitter.BuildContrail(GlobalContent.EffectChains["Ripple"], EmitterPower.Tiny, 0f, 4f, 6f); ripples.AttachTo(this, false); ripples.RelativeZ = -2f; ripples.RelativeX = -4f; // override some core emitter settings for ripples ripples.TimedEmission = true; ripples.EmissionSettings.Alpha = 0.5f; ripples.EmissionSettings.RotationZVelocity = 0; ripples.EmissionSettings.RotationZVelocityRange = 0; ripples.EmissionSettings.ScaleY = 12f; ripples.SecondFrequency = 1f; }
private void CreateEmitters() { // Create emitters using EasyEmitter var rippleParticle = GlobalContent.EffectChains["WakeParticle"]; rippleEmitter = EasyEmitter.BuildContrail(rippleParticle, EmitterPower.Tiny, 3f, 0.70f, 25f); var trailParticle = GlobalContent.EffectChains["WakeParticle2"]; trailEmitter = EasyEmitter.BuildContrail(trailParticle, EmitterPower.Tiny, 6f, 7f, 3f, 16f); // Override a few settings rippleEmitter.EmissionSettings.Alpha = 0.35f; rippleEmitter.RelativeX = 2f; trailEmitter.EmissionSettings.Alpha = 0.35f; trailEmitter.EmissionSettings.RotationZVelocity = 0; trailEmitter.EmissionSettings.RotationZVelocityRange = 0; // Attach and position rippleEmitter.AttachTo(this, false); rippleEmitter.RelativeZ = -1f; trailEmitter.AttachTo(this, false); trailEmitter.RelativeZ = -1.5f; trailEmitter.RelativeX = -16f; }