# Why end event not fires

**URL:** <https://forum.babylonjs.com/t/why-end-event-not-fires/51550>\
**Category:** Bugs\
**Created:** [June 24, 2024, 4:18am UTC](https://forum.babylonjs.com/t/why-end-event-not-fires/51550 "2024-06-24T04:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitmo\_games](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bitmo_games/32/37337_2.png) [@bitmo\_games](https://forum.babylonjs.com/u/bitmo_games)\
**Post date:** [June 24, 2024, 4:18am UTC](https://forum.babylonjs.com/t/why-end-event-not-fires/51550/1 "2024-06-24T04:18:02Z")

</div>

i need that end event works, but not works :

> **[Babylon.js Playground](https://playground.babylonjs.com/#CBGEQX%231940)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

- i do not have a “stop” button… is an auto animate…

---

<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:** [June 24, 2024, 3:09pm UTC](https://forum.babylonjs.com/t/why-end-event-not-fires/51550/2 "2024-06-24T15:09:11Z")

</div>

Looking at it right now

---

<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:** [June 24, 2024, 3:16pm UTC](https://forum.babylonjs.com/t/why-end-event-not-fires/51550/3 "2024-06-24T15:16:57Z")

</div>

Ok so the animation group is not ending because you call `play(true)` so in loop mode. And the animations are set to LOOPMODE\_CONSTANT, meaning that they will forever loop with a constant value and thus the animation group will never end.

Several options:

- Do call `playe(false)`
- Use animation events ( [Advanced Animation Methods | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/features/featuresDeepDive/animation/advanced_animations#attach-events-to-animations)): [Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#7UR1VR)
