From f543c23ba94d7cc4e82c014147f4ba6444f8717c Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 13 Oct 2020 21:05:55 -0700 Subject: [PATCH] more controls for charting --- source/ChartingState.hx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 45ba065eb..b521a0112 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -214,7 +214,24 @@ class ChartingState extends MusicBeatState if (FlxG.keys.justPressed.R) { - changeSection(); + if (FlxG.keys.pressed.SHIFT) + changeSection(); + else + changeSection(curSection); + } + + if (FlxG.keys.pressed.W || FlxG.keys.pressed.S) + { + FlxG.sound.music.pause(); + + var daTime:Float = 700 * FlxG.elapsed; + + if (FlxG.keys.pressed.W) + { + FlxG.sound.music.time -= daTime; + } + else + FlxG.sound.music.time += daTime; } if (FlxG.keys.justPressed.UP)