Jump to content

Sound.position NEVER updates


Tilde
 Share

Recommended Posts

This is as straightforward a problem as I've ever had. I need to monitor a sound's (the bgm's) position for a rhythm game, but when I start the music and then console.log(bgm.position) every frame, it reports 0 no matter what. I didn't put play in the update loop or anything like that. I have no idea where to begin with this one. I can only imagine it's a problem with the framework or something. Or maybe "position" means something totally different in the context of phaser?

 

Untitled.png

Link to comment
Share on other sites

Sorry, I'm a little confused. Are you saying it refers to the current marker and not the actual playhead? If so, is there a way to get the value I'm looking for?

EDIT: currentTime. Got it. Sorry about that. I would mark your post as the answer, but I don't see that in this new layout.

Link to comment
Share on other sites

  • 10 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...