Do timelines work in for each loops

Hello, currently im stumped. I have an array of held items orbiting around the player, I would like when prompted for the items to go above the players head one at a time and shoot out from that location. But I am having an issue with the Timeline, I have a for each loop going through each item in the array and a timeline lerping the items one at a time above the players head but there is an issue with the items getting sent up. it is supposed to thrown after the timeline has finished and there is supposed to be 3 shot out but it hasn’t been working.

I have tested this and the finished events are only firing once when the input is in “play from start” and twice when it is from “play” even though it should be firing off 3 times, and three signals are getting sent to the timeline but it doesn’t seem to be working.

Do timelines work in for each loops or is it something I am doing?

For loops have very little to do with timelines.

Let’s try to simplify: What if you have only one object? Can you get that to behave correctly, using the timeline approach you’re using, without a for loop?

Yeah thank you, I broke it down doing it one at a time, and realized it had to do with the delay I had in a custom for each loop. the delay I had was too fast and was fixed when changed from 0.3 → 0.6.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.