How to run animation once

Hey. Under certain conditions, I run the animation. How can I start another one after a single animation player?

 this.entity.sprite.play('openBacket')

Hi @sergey_ch,

Check the following posts, it provides a number of ways of detecting when the animations stops playing. From there you can start another one.

You can turn off loop for the sprite animation that plays first, and then when it is not playing anymore, you play a different sprite animation. You set the animation that plays first to play on awake.