# How to loop through different parts of a door blueprint smoothly?

**URL:** <https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, question, Blueprint\
**Created:** [August 6, 2018, 3:07pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075 "2018-08-06T15:07:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Big\_R-07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Big\_R-07](https://forums.unrealengine.com/u/Big_R-07)\
**Post date:** [August 6, 2018, 3:07pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/1 "2018-08-06T15:07:15Z")

</div>

So I have this door/wall of sorts that is currently made up of 2 pieces like so:

![249629-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/b/37b3f9128c27f9e61d4cd068ac645efcd727e7d2.png)

Currently the wall works with the following blueprint:

 ![249630-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/1/ac17a80970c560ad95ccb12716840014d0f2b149.png)

Each timeline is set up to run in 4 seconds with a 1 second delay between the first and second timeline. My question is that if I want to seperate these 2 walls into 5 pieces each and have one part of the wall go down one right after the other smoothy, do I have to create 10 timelines to do it or is there an easier way? For examples lets just start with getting both walls to go down one after the other, if there is in fact an easier way to do this.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 6, 2018, 3:45pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/2 "2018-08-06T15:45:09Z")

</div>

Since you do not need the timeline to drive multiple objects simultaneously, you can reuse it:

 ![249632-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/c/b4c9fb18f2b6d2a87d1f491dccde811a21368176.jpeg)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/e/7ee2cf3308873b3cb5d6bc0250d2fb918b6952df.gif)](https://gyazo.com/b3e4ccba2bfd6d01945340cc8596488d)

With this, you apply it to as many elements as you wish.

edit: you can use Select node for the Lerp data and use the timeline track as Alpha, of course. I’m doing a weird thing here to make it faster.

* * *

If you need the Timeline to drive several objects simultaneously, you should be able to achieve that by creating multiple tracks in the same Timeline and offset each track by the desired value. It’s not going to be pretty but beats 10 separate timelines for sure.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 6, 2018, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/3 "2018-08-06T16:29:55Z")

</div>

You could also get a bit cheeky and use a vector for the Alpha value and split it, giving you the opportunity to move multiple objects simultaneously using just a single vector track:

 ![249633-tl.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/e/39e81e633c72a1049494740fbcb53db16f8ca8db.png)

 ![249634-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/c/72cc23e7afad1a9c6b224516102f36fd1c0906ad.png)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/2/b52e510232be87f7b6d4dc03006b0a013b40b1d1.gif)](https://gyazo.com/c6e2b0cac670a0012d4f392a08f3b514)

With each track you can control up to 3 additional elements.

You could even combine this method with the re-usability suggestion from my first post but then it might be hard to read and debug. Still, beats 10 timelines.

Good luck!

---

<div class="post-metadata">

**Author:** ![Big\_R-07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Big\_R-07](https://forums.unrealengine.com/u/Big_R-07)\
**Post date:** [August 6, 2018, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/4 "2018-08-06T20:40:39Z")

</div>

So in your first blueprint and video how would go about it so that shortly after the first one starts to move the second one would begin to move? Because right now each one will complete it’s full movement before proceeding to the next one.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 6, 2018, 8:58pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/5 "2018-08-06T20:58:13Z")

</div>

You’d have to look at my second example for the simultaneous movement.

---

<div class="post-metadata">

**Author:** ![Big\_R-07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Big\_R-07](https://forums.unrealengine.com/u/Big_R-07)\
**Post date:** [August 6, 2018, 11:20pm UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/6 "2018-08-06T23:20:20Z")

</div>

There’s no way to add a timer of sorts to the first one? Something like after so many seconds fire the next one and so on.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 7, 2018, 6:13am UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/7 "2018-08-07T06:13:17Z")

</div>

You can add the Delay node once the branch goes False but the objects will move one after another. I believe that’s what you wanted in your original post.

* * *

Perhaps you do not need a timeline at all and can interpolate during Tick. That’s unless this is very time sensitive.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [August 7, 2018, 10:08am UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/8 "2018-08-07T10:08:25Z")

</div>

I have encountered an issue with timelines: they work differently in viewport launch and in a Standalone game, objects move to different positions for some reason, so I have to use Sequences or Vinterps instead. How do you make timelines as intended in various launches?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 7, 2018, 10:54am UTC](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/9 "2018-08-07T10:54:45Z")

</div>

@Tuerer Sadly, I’ve never encountered an issue like that. If you do have a documented example, consider sending a bug report, the case you describe seems to qualify as one.
