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

192
Views
¿Cómo puede detectar si se está reproduciendo música en Phaser?

En mi juego, a veces quiero tocar música. Pero la música que ya se está reproduciendo no debe anularse.

Entonces, ¿cómo puedo

  1. Comprobar si se está reproduciendo música
  2. Maneja ese sonido

Idealmente en una interfaz global como this.sound

Gracias por adelantado

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

HTML5AudioSound tiene isPlaying miembro.

 // inside scene method, create sound const music = this.sound.add('music-name', {}); music.play(); // and later if(music.isPlaying) { }

Consulte https://newdocs.phaser.io/docs/3.54.0/Phaser.Sound.HTML5AudioSound#isPlaying y https://newdocs.phaser.io/docs/3.52.0/Phaser.Sound.HTML5AudioSoundManager

(este sonido es HTML5AudioSoundManager this.sound

about 4 years ago · Santiago Trujillo 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!