# Get control over animations

**URL:** <https://phaser.discourse.group/t/get-control-over-animations/2758>\
**Category:** Phaser 3\
**Created:** [June 12, 2019, 5:28pm UTC](https://phaser.discourse.group/t/get-control-over-animations/2758 "2019-06-12T17:28:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobbin](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bobbin](https://phaser.discourse.group/u/bobbin)\
**Post date:** [June 12, 2019, 5:28pm UTC](https://phaser.discourse.group/t/get-control-over-animations/2758/1 "2019-06-12T17:28:56Z")

</div>

I have a character that balances itself on a wheel (no physics, just animation) leans forward when going forward and backwards when going backwards.  
The transition from going forwards to backwards has an animation of rotating backwards. If the character has only started to lean forwards I can’t just start the animation of turning backwards with the starting point of the animation with the character fully leaned forwards. This is why I need to start the animation of the turning back as advanced in frames as the animation of going forwards has advanced. I need control over from which frame the animation starts. How could I do this.?

---

<div class="post-metadata">

**Author:** ![rich](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/rich/32/4_2.png) [@rich](https://phaser.discourse.group/u/rich)\
**Post date:** [June 13, 2019, 9:13pm UTC](https://phaser.discourse.group/t/get-control-over-animations/2758/2 "2019-06-13T21:13:18Z")

</div>

Argument 3 of the play method is your friend here:

```
 * @param {(string|Phaser.Animations.Animation)} key - The string-based key of the animation to play, as defined previously in the Animation Manager. Or an Animation instance.
 * @param {boolean} [ignoreIfPlaying=false] - If this animation is already playing then ignore this call.
 * @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index.
```

---

<div class="post-metadata">

**Author:** ![bobbin](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bobbin](https://phaser.discourse.group/u/bobbin)\
**Post date:** [June 15, 2019, 6:56pm UTC](https://phaser.discourse.group/t/get-control-over-animations/2758/3 "2019-06-15T18:56:19Z")

</div>

I’ll see what I can do with this. Thanks !
