# Move Cube from Array with timeline 

**URL:** <https://forums.unrealengine.com/t/move-cube-from-array-with-timeline/2306268>\
**Category:** Blueprint\
**Tags:** timeline, random, unreal-engine, Array\
**Created:** [January 27, 2025, 8:11pm UTC](https://forums.unrealengine.com/t/move-cube-from-array-with-timeline/2306268 "2025-01-27T20:11:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lecinema](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lecinema](https://forums.unrealengine.com/u/lecinema)\
**Post date:** [January 27, 2025, 8:11pm UTC](https://forums.unrealengine.com/t/move-cube-from-array-with-timeline/2306268/1 "2025-01-27T20:11:49Z")

</div>

Hi everyone,  
I made a grid of cubes, now I want to move some cubes randomly with timeline.  
I can change the x coord of cubes randomly.  
But not with timeline.  
I don’t understand why.  
Every help is welcome.  
Thank’s

 ![Capture d’écran 2025-01-27 à 20.48.46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/b/5cbe87e742902ec17039564658c5ac7048336182.png)  
 ![Capture d’écran 2025-01-27 à 20.48.21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/0/ba0a5ac265275c4743bc7a0fc9681a9f82b2ea5c.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:** [January 28, 2025, 11:10am UTC](https://forums.unrealengine.com/t/move-cube-from-array-with-timeline/2306268/2 "2025-01-28T11:10:51Z")

</div>

If they are cube BPs, you can just put the timeline in the BP. Then choose one randomly, and tell it to move 🙂

---

<div class="post-metadata">

**Author:** ![lecinema](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lecinema](https://forums.unrealengine.com/u/lecinema)\
**Post date:** [January 28, 2025, 2:53pm UTC](https://forums.unrealengine.com/t/move-cube-from-array-with-timeline/2306268/3 "2025-01-28T14:53:33Z")

</div>

Thank’s for the answer  
effectively, I must be tired yesterday  
If I call the function CubeMove (who’s inside the BP\_Cube, with a timeline to move on x), from the Level BP, it works.  
Thank’s a lot !  
lc

 ![Capture d’écran 2025-01-28 à 15.49.48](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/e/88eb8d912f6004091363d2e716d9aed4333f728d.png)
