Home › Forums › TimelineFX Module › How to set the position of an effect? › Re: Re: How to set the position of an effect?
With this code
Function Load()
particle_manager.SetScreenSize(TSettings.resolution_x, TSettings.resolution_y)
particle_manager.SetOrigin(TSettings.resolution_x/2, TSettings.resolution_y/2)
particle_manager.SetUpdateMode(tlUPDATE_MODE_INTERPOLATED)
For Local dir:String = EachIn LoadDir("DataEffects")
If Not _effects.Contains(dir) Then _effects.Insert(dir, LoadEffects("DataEffects" + dir, False))
Next
SetUpdateFrequency(15.0)
Tweener = New tTweener.Create(15)
End Function
I get a Null object error here
'
Speed
If Not bypass_speed
e.speed = c_velocity.changes[0]
e.velvariation = Rnd(-current_speedvariation, current_speedvariation)
e.basespeed = (current_speed + e.velvariation) * parentEffect.currentvelocity
e.velseed = Rnd(0, 1.0)
e.speed = c_velocity.changes[0] * e.basespeed * c_globalvelocity.changes[0]