Say I have three orxOBJECTs. I want to apply the same FX to each of them when they are created, but I want to stagger it so the FX doesn't start on one until 0.5s after it has started on the previous one.
Last time I needed this, I solved it in code by using AddDelayedFX.
Is there any way to specify this in config instead?
Comments
using actually 3 FXs inheriting from a common parent instead of just one and shifting their start/end times accordingly.
That being said, what would you say of having a Delay property in the FX itself?
Let me know if that works for you.
"Good", because I tried to do it just like that, by shifting the start and end times, and could not make it work. I was getting frustrated.
That's great, thank you! Yes, I think that's the best option in config. I'll try it tonight and let you know how it goes.
This will help a lot, because it's very common to create a big group of objects and need them to do almost the same thing, but "follow" each other.
Yep, the reason for that being that FXs, like sounds, shaders or textures, for example, are unique in memory, identified by their name. So as long as there's already one FX with that name in memory it will not get recreated, and thus your new config values won't get read.
Works great!