# Side scroller platformer - cinematics

**URL:** <https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760>\
**Category:** Cinematics & Media\
**Tags:** platformer, unreal-engine, Blueprint, question\
**Created:** [February 25, 2020, 2:57pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760 "2020-02-25T14:57:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 2:57pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/1 "2020-02-25T14:57:32Z")

</div>

How can i use the level sequencer in a 2D game? I mean i did just like in a 3D game: add a level sequencer - Track - Add to sequencer - my platform but here i dont get the “Transform” section. Any help? I have also tried with “Timeline” and “SetRelativeLocation” but i dont know how to use “loop” so it can go from the final position to the initial position and so on.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 7:11pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/2 "2020-02-25T19:11:30Z")

</div>

Tell me what you’re trying to do and I’ll show you some code. I’ve found using BP much better than the sequencer to general animations because you have a lot more control.

I’ll post a simple moving cube here in a moment. It’s tempting to try it with a loop but timeline is they way…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 7:15pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/3 "2020-02-25T19:15:37Z")

</div>

So to move a cube using the level BP:

 ![296895-move-mesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6ae5f870908f882dd6f76f52088821de18ca649e.png)

Cube is set to ‘moveable’ in details.

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 7:31pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/4 "2020-02-25T19:31:37Z")

</div>

I’m just trying to make a cube moving right \<-\> left or up \<-\> down.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 7:44pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/5 "2020-02-25T19:44:46Z")

</div>

Yup, so you can do it like I have below, using just an object placed in the level, using the level BP.

Or you can put the object in a BP and have the code in there also. It works slightly differently then. But basically you use SetRelativeLocation or SetActorLocation ( not relative ).

If you get stuck, gimme a few pics and a bit more info…

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 7:49pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/6 "2020-02-25T19:49:39Z")

</div>

Can you show me your Timeline too please? And also, this is just up → down, how can i make it go down → up too? In my Timeline i ve selected the “loop” section but still doesnt work.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 7:53pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/7 "2020-02-25T19:53:34Z")

</div>

In my TL it’s just a line going from 0 - 1.

If you want to loop it and make it go up and down, you need to put 3 points, so the line goes from 0 to 1 and then back to 0 again.

( then click loop )

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 7:59pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/8 "2020-02-25T19:59:45Z")

</div>

Can you show me how it should look like please?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:08pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/9 "2020-02-25T20:08:39Z")

</div>

Inside the TL, like this:

 ![296893-tl.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/4/90416defaae1474be9cc6ca9bd819f781b6cc184.png)

To get it smooth, just right the points and choose auto.

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:16pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/10 "2020-02-25T20:16:57Z")

</div>

Okay, and what else should i do to enable the loop functionality?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:17pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/11 "2020-02-25T20:17:27Z")

</div>

Click the loop box 😉

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:18pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/12 "2020-02-25T20:18:12Z")

</div>

I did this and still doesnt work :)).

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:20pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/13 "2020-02-25T20:20:15Z")

</div>

Can you show me your BP?

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:23pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/14 "2020-02-25T20:23:24Z")

</div>

![296894-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/3/553722ddddc71c3776942b221d98b003ab90c99a.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:24pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/15 "2020-02-25T20:24:41Z")

</div>

Looks good. Did you set the mesh to movable ( in the details panel in the level )? Are you getting errors?

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:26pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/16 "2020-02-25T20:26:27Z")

</div>

Yes, the platform is movable and no, i get 0 errors. The platform goes down and then stops.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:32pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/17 "2020-02-25T20:32:49Z")

</div>

Right. Delete the node that says ‘root component’. Drag the pin on the cube reference again and choose (static mesh component), and then connect that to the target.

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:37pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/18 "2020-02-25T20:37:00Z")

</div>

![296896-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/f/8afeda74dcb790c48c560251af25e0f4d54c0b45.png)

Which one?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2020, 8:38pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/19 "2020-02-25T20:38:55Z")

</div>

No, no. See my diagram below ( which was wrong and I changed it ). See how it goes cube → static mesh → target…

---

<div class="post-metadata">

**Author:** ![Labrador23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Labrador23](https://forums.unrealengine.com/u/Labrador23)\
**Post date:** [February 25, 2020, 8:42pm UTC](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760/20 "2020-02-25T20:42:15Z")

</div>

Okay i get it but how can i change it? :)).

[Next page](https://forums.unrealengine.com/t/side-scroller-platformer-cinematics/461760.md?page=2)
