mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 06:09:02 +00:00
positioning and average reset
This commit is contained in:
parent
94732c1190
commit
63a49010ba
|
|
@ -108,7 +108,7 @@ class LatencyState extends MusicBeatSubState
|
||||||
beatTick.alpha = 0.3;
|
beatTick.alpha = 0.3;
|
||||||
add(beatTick);
|
add(beatTick);
|
||||||
|
|
||||||
var offsetTxt:FlxText = new FlxText(songPosToX(beat * (localConductor.stepLengthMs * 2)), FlxG.height - 26, 0, "swag");
|
var offsetTxt:FlxText = new FlxText(songPosToX(beat * (localConductor.stepLengthMs * 2)), FlxG.height - 26, 0, "");
|
||||||
offsetTxt.alpha = 0.5;
|
offsetTxt.alpha = 0.5;
|
||||||
diffGrp.add(offsetTxt);
|
diffGrp.add(offsetTxt);
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ class LatencyState extends MusicBeatSubState
|
||||||
helpText.setFormat(Paths.font("vcr.ttf"), 20);
|
helpText.setFormat(Paths.font("vcr.ttf"), 20);
|
||||||
helpText.text = "Press ESC to return to main menu";
|
helpText.text = "Press ESC to return to main menu";
|
||||||
helpText.x = FlxG.width - helpText.width;
|
helpText.x = FlxG.width - helpText.width;
|
||||||
helpText.y = FlxG.height - helpText.height - 2;
|
helpText.y = FlxG.height - (helpText.height * 2) - 2;
|
||||||
add(helpText);
|
add(helpText);
|
||||||
|
|
||||||
regenNoteData();
|
regenNoteData();
|
||||||
|
|
@ -290,14 +290,22 @@ class LatencyState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (FlxG.keys.justPressed.RIGHT)
|
if (FlxG.keys.anyJustPressed([LEFT, RIGHT]))
|
||||||
{
|
{
|
||||||
localConductor.inputOffset += 1 * multiply;
|
if (FlxG.keys.justPressed.RIGHT)
|
||||||
}
|
{
|
||||||
|
localConductor.inputOffset += 1 * multiply;
|
||||||
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.LEFT)
|
if (FlxG.keys.justPressed.LEFT)
|
||||||
{
|
{
|
||||||
localConductor.inputOffset -= 1 * multiply;
|
localConductor.inputOffset -= 1 * multiply;
|
||||||
|
}
|
||||||
|
|
||||||
|
// reset the average, so you don't need to wait a full loop to start getting averages
|
||||||
|
// also reset each text member
|
||||||
|
offsetsPerBeat = [];
|
||||||
|
diffGrp.forEach(memb -> memb.text = "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue