Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

337
Visualizações
What is the Phaser 3 Animation Manager's anims.play() second parameter for?

I've followed the tutorial on the Phaser website for making a basic platforming game, but I've had difficulty finding good documentation on how they play animations.

When they call:

player.anims.play('left', true);

they pass a boolean for the second parameter, but later when they call:

player.anims.play('turn');

they don't pass anything.

What is the function of this parameter, and is it false by default?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Here in the documentation of the function play, you can see that the second parameter is ignoreIfPlaying. This parameter tells phaser, if it should ignore the specific function call, if the animation is playing.

... If this animation is already playing then ignore this call. ...

And yes, the default value is false, for this parameter.

The documentation is a bit difficult to navigate since the functions/object are defined different, as one would use it in code.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda