# Is there a way to "force" animations to keep playing?

**URL:** <https://phaser.discourse.group/t/is-there-a-way-to-force-animations-to-keep-playing/9770>\
**Category:** Phaser 3\
**Created:** [June 12, 2021, 2:00am UTC](https://phaser.discourse.group/t/is-there-a-way-to-force-animations-to-keep-playing/9770 "2021-06-12T02:00:01Z")\
**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 12, 2021, 2:00am UTC](https://phaser.discourse.group/t/is-there-a-way-to-force-animations-to-keep-playing/9770/1 "2021-06-12T02:00:01Z")

</div>

Hi,  
is there a function or easier way to keep an animation playing til the end (of the loop) or for a certain time,  
even if another animation tries to start playing in the mean time?

Reason is I want to keep my shooting animation for a bit after releasing the shoot key,  
even if I press other keys like mvoing, which starts the moving animation.

I think it could work with the anim.currentAnim.key plus playAfterRepeat function,  
but it seems a bit too much to ask for any situations.  
That’s why I wondered if there might be a function, parameter or whatever just like the parameter that ignore playing an animation, if it always run, but for all animations. → “ignore any other animations until this one ended”.

Bonus question:  
Is there a “usual way” to organize player animations?  
Currently I’m putting all animations together with my player control.  
It works, but I see that it’s getting more and more confusing.

---

<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 12, 2021, 2:07pm UTC](https://phaser.discourse.group/t/is-there-a-way-to-force-animations-to-keep-playing/9770/2 "2021-06-12T14:07:21Z")

</div>

[https://newdocs.phaser.io/docs/3.55.2/Phaser.Animations.AnimationState#chain](https://newdocs.phaser.io/docs/3.55.2/Phaser.Animations.AnimationState#chain)

---

<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 12, 2021, 5:59pm UTC](https://phaser.discourse.group/t/is-there-a-way-to-force-animations-to-keep-playing/9770/3 "2021-06-12T17:59:08Z")

</div>

Sounds good, I will try it. Thanks.
