Tilde Posted February 4, 2016 Share Posted February 4, 2016 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? Link to comment Share on other sites More sharing options...
icp Posted February 4, 2016 Share Posted February 4, 2016 The position property refers to what part of a song you would like to play. Example: you have a 10 seconds background music sound and you play only the sound between second 5 and 7. Tilde 1 Link to comment Share on other sites More sharing options...
Tilde Posted February 4, 2016 Author Share Posted February 4, 2016 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 More sharing options...
jackrugile Posted December 19, 2016 Share Posted December 19, 2016 But how would you go about seeking to a specific position? I am temporary holding the currentTime to resume at a later time, but I don't know how to seek to that position. Link to comment Share on other sites More sharing options...
Recommended Posts