tracing the sound.time issue

This commit is contained in:
Brandon 2020-11-05 01:51:31 -05:00
parent a9dddbc4a5
commit 8f5788109e
1 changed files with 6 additions and 2 deletions

View File

@ -583,7 +583,10 @@ class PlayState extends MusicBeatState
{
super.update(elapsed);
// trace("SONG POS: " + Conductor.songPosition);
trace("FlxG.elapsed: " + FlxG.elapsed);
trace("FlxG.sound.music.time: " + FlxG.sound.music.time);
trace("FlxG.sound.music.playing: " + FlxG.sound.music.playing);
//trace("SONG POS: " + Conductor.songPosition);
// FlxG.sound.music.pitch = 2;
if (FlxG.keys.justPressed.ENTER && startedCountdown)
@ -634,7 +637,8 @@ class PlayState extends MusicBeatState
}
else
{
Conductor.songPosition = FlxG.sound.music.time;
//Conductor.songPosition = FlxG.sound.music.time;
Conductor.songPosition += FlxG.elapsed * 1000;
if (!paused)
{