un-sabotage's your hit windows

This commit is contained in:
Kade M
2021-06-04 14:15:26 -07:00
parent b28b793374
commit a79b29ce14
3 changed files with 63 additions and 9 deletions

View File

@ -674,14 +674,14 @@ class ChartingState extends MusicBeatState
writingNotes = !writingNotes;
}
/*if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.RIGHT)
if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.RIGHT)
snap = snap * 2;
if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.LEFT)
snap = Math.round(snap / 2);
if (snap >= 192)
snap = 192;
if (snap <= 1)
snap = 1;*/
snap = 1;
Conductor.songPosition = FlxG.sound.music.time;
_song.song = typingShit.text;
@ -944,7 +944,16 @@ class ChartingState extends MusicBeatState
FlxG.sound.music.pause();
vocals.pause();
FlxG.sound.music.time = curStep * Conductor.stepCrochet - (FlxG.mouse.wheel * Conductor.stepCrochet / snap);
var stepMs = curStep * Conductor.stepCrochet;
if (FlxG.sound.music.time < 0)
FlxG.sound.music.time = 0;
trace(Conductor.stepCrochet / snap);
FlxG.sound.music.time = (stepMs + (Conductor.stepCrochet / snap)) * FlxG.mouse.wheel;
trace(stepMs + " + " + Conductor.stepCrochet / snap + " -> " + FlxG.sound.music.time);
vocals.time = FlxG.sound.music.time;
}