Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

332
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!