# I cannot begin my animations on a scene

**URL:** <https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882>\
**Category:** Questions\
**Created:** [August 1, 2019, 3:55pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882 "2019-08-01T15:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [August 1, 2019, 3:55pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882/1 "2019-08-01T15:55:36Z")

</div>

I have a React app with BJS scene inside. I use state objects of React, with React Hooks, to create an `Animation` object, the keys, and I use `scene.beginAnimation` to start it but I cannot get animation run.  
It returns and `Animatable` object which I store and use again to pause, stop, restart etc with `Animatable` methods of same names.

What am I missing?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 1, 2019, 4:00pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882/2 "2019-08-01T16:00:43Z")

</div>

With no repro I can’t tell unfortunately

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [August 1, 2019, 4:08pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882/3 "2019-08-01T16:08:05Z")

</div>

I see. I know. It is just this setup I use makes the extraction of the code for BJS PG a bit difficult. But I will try to extract.

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [August 1, 2019, 5:18pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882/4 "2019-08-01T17:18:41Z")

</div>

Here it is.  
[PG](https://playground.babylonjs.com/#48JBL2)

But it works here.  
While it also works in my app now, I have improved it, the problem it is not smooth, it is discrete. At first it is at origin then the second I begin animaiton it is at the final value.  
What am I missing here?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 1, 2019, 6:16pm UTC](https://forum.babylonjs.com/t/i-cannot-begin-my-animations-on-a-scene/4882/5 "2019-08-01T18:16:39Z")

</div>

It is smooth in the PG ☹ so again no repro so it is complicated to help

Can you make sure the value you give are ok by logging them to the console?
