diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 1b303fc3..cfd2dbb0 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -363,7 +363,7 @@ class Charter extends UIState { scrollBar.cameras = [uiCamera]; scrollBar.onChange = function(v) { if (!FlxG.sound.music.playing) - Conductor.songPosition = Conductor.getTimeForStep(v); + Conductor.songPosition = Conductor.getTimeForStep(v) + Conductor.songOffset; }; uiGroup.add(scrollBar); @@ -881,7 +881,7 @@ class Charter extends UIState { } } else { if (!FlxG.sound.music.playing) { - Conductor.songPosition -= __crochet * FlxG.mouse.wheel; + Conductor.songPosition -= (__crochet * FlxG.mouse.wheel) - Conductor.songOffset; } } } @@ -1149,7 +1149,7 @@ class Charter extends UIState { FlxG.state.openSubState(new MetaDataScreen(PlayState.SONG.meta)); function _playback_play(_) { - if (Conductor.songPosition >= FlxG.sound.music.getDefault(vocals).length) return; + if (Conductor.songPosition >= FlxG.sound.music.getDefault(vocals).length - Conductor.songOffset) return; if (FlxG.sound.music.playing) { FlxG.sound.music.pause(); @@ -1157,7 +1157,7 @@ class Charter extends UIState { } else { FlxG.sound.music.play(); vocals.play(); - vocals.time = FlxG.sound.music.time = Conductor.songPosition; + vocals.time = FlxG.sound.music.time = Conductor.songPosition + Conductor.songOffset * 2; } } @@ -1174,11 +1174,11 @@ class Charter extends UIState { } function _playback_back(_) { if (FlxG.sound.music.playing) return; - Conductor.songPosition -= Conductor.beatsPerMesure * __crochet; + Conductor.songPosition -= (Conductor.beatsPerMesure * __crochet); } function _playback_forward(_) { if (FlxG.sound.music.playing) return; - Conductor.songPosition += Conductor.beatsPerMesure * __crochet; + Conductor.songPosition += (Conductor.beatsPerMesure * __crochet); } function _playback_start(_) { if (FlxG.sound.music.playing) return; diff --git a/source/funkin/options/categories/GameplayOptions.hx b/source/funkin/options/categories/GameplayOptions.hx index 397b8069..8adaabce 100644 --- a/source/funkin/options/categories/GameplayOptions.hx +++ b/source/funkin/options/categories/GameplayOptions.hx @@ -43,9 +43,9 @@ class GameplayOptions extends OptionsScreen { FlxG.camera.zoom += 0.03; __lastBeat = Conductor.curBeat; } - if (__lastSongBeat != Math.floor(Conductor.getStepForTime(FlxG.sound.music.time / 2) / Conductor.stepsPerBeat)) { + if (__lastSongBeat != Math.floor(Conductor.getStepForTime(FlxG.sound.music.time) / Conductor.stepsPerBeat)) { __metronome.replay(); - __lastSongBeat = Math.floor(Conductor.getStepForTime(FlxG.sound.music.time / 2) / Conductor.stepsPerBeat); + __lastSongBeat = Math.floor(Conductor.getStepForTime(FlxG.sound.music.time) / Conductor.stepsPerBeat); } } else FlxG.sound.music.volume = 1;