You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When accessing a playing FlxSound the "time" float is always 0 UNLESS it is set. Setting works but getting it does not.
Here I have my PlayState and MusicHandler both attempting to grab the "time" value separately yet it's always at zero while the elapsed time still rises (as shown by the conductor.) It seems that even though the stream is playing it isn't setting the time on update as it should be
The text was updated successfully, but these errors were encountered:
time is set in the sound's update method, which is only called automatically if it's in a sound group. sounds are automatically added to sound groups if you play them via: FlxG.sound.play, FlxG.sound.load or FlxG.sound.playMusic. You can also add them to FlxG.sound.defaultSoundGroup manually.
I know this is weird, and it seems like time should just read the underlying sound's position. we may make that change, it's being discussed, here: #3272
When accessing a playing FlxSound the "time" float is always 0 UNLESS it is set. Setting works but getting it does not.
Here I have my PlayState and MusicHandler both attempting to grab the "time" value separately yet it's always at zero while the elapsed time still rises (as shown by the conductor.) It seems that even though the stream is playing it isn't setting the time on update as it should be
The text was updated successfully, but these errors were encountered: