Home › Forums › TimelineFX Module › First use of effect not working › Re: Re: First use of effect not working
This is the code I am using:
Local tempEffect:tlEffect = effectsLibrary.GetEffect(“Explosions/Bigger Explosion 2”)
Local effect:tlEffect = CopyCompiledEffect(tempEffect, particleManager)
particleManager.AddEffect(effect, LAYER_ENEMIES)
effect.SetPosition(_currentPosition.x, _currentPosition.y)
I also tried CopyEffect in stead of CopyCompiledEffect. I can’t see anything wrong with this code. I think I even nicked it from your examples.