# Start animation at a specific frame

**URL:** <https://phaser.discourse.group/t/start-animation-at-a-specific-frame/9763>\
**Category:** Phaser 3\
**Created:** [June 10, 2021, 1:23pm UTC](https://phaser.discourse.group/t/start-animation-at-a-specific-frame/9763 "2021-06-10T13:23:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiroho](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kiroho/32/5004_2.png) [@Kiroho](https://phaser.discourse.group/u/Kiroho)\
**Post date:** [June 10, 2021, 1:23pm UTC](https://phaser.discourse.group/t/start-animation-at-a-specific-frame/9763/1 "2021-06-10T13:23:17Z")

</div>

Hello,  
I try to start an animation at a specific frame instead from the first one,  
but I had no luck yet.  
I know about the startFrame parameter an I already tried to use it via `this.anims.play('jump', true, 7);` as visual studio told me via tooltip, but the animation still starts at first frame.  
Maybe it’s because I’m using a sprite atlas with frame names, I don’t know.

My actual goal is to connect two animations.  
One is a normal running animation and the other is the same animation, but with different hand poses.  
I can switch them while running, but then the new animations starts from first frame which makes it look ugly.  
When switching I want to read the frame number from the old animation and start the new animation at this frame.

I’m thankful for any kind of help. 🙂

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [June 10, 2021, 6:04pm UTC](https://phaser.discourse.group/t/start-animation-at-a-specific-frame/9763/2 "2021-06-10T18:04:40Z")

</div>

Since Phaser v3.50 I think it must be

```javascript
 this.anims.play({ key: 'jump', startFrame: 7 }, true);
```

---

<div class="post-metadata">

**Author:** ![Kiroho](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kiroho/32/5004_2.png) [@Kiroho](https://phaser.discourse.group/u/Kiroho)\
**Post date:** [June 10, 2021, 9:52pm UTC](https://phaser.discourse.group/t/start-animation-at-a-specific-frame/9763/3 "2021-06-10T21:52:52Z")

</div>

Damn brackets. ^^  
Works perfectly, also together with grabbing the current frame of the old animation.  
Thank you. 😃
