Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Push ratings off the center on Mid Scroll #2743

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3609,13 +3609,16 @@ class PlayState extends MusicBeatState
rating.loadGraphic(Paths.loadImage(pixelShitPart1 + daRating + pixelShitPart2, pixelShitPart3));
rating.screenCenter();
rating.y -= 50;
rating.x = coolText.x - 125;

if(!FlxG.save.data.middleScroll) rating.x = (coolText.x - 125)
else rating.x = (coolText.x + 200);

if (FlxG.save.data.changedHit)
{
rating.x = FlxG.save.data.changedHitX;
rating.y = FlxG.save.data.changedHitY;
}

rating.acceleration.y = 550;
rating.velocity.y -= FlxG.random.int(140, 175);
rating.velocity.x -= FlxG.random.int(0, 10);
Expand Down Expand Up @@ -3680,7 +3683,13 @@ class PlayState extends MusicBeatState
comboSpr.velocity.y -= 150;

currentTimingShown.screenCenter();
currentTimingShown.x = comboSpr.x + 100;

if(!FlxG.save.data.middleScroll) currentTimingShown.x = comboSpr.x + 100;
else {
currentTimingShown.x = rating.x + 30;
currentTimingShown.alignment = FlxTextAlign.RIGHT; // is this even doing anything
}

currentTimingShown.y = rating.y + 100;
currentTimingShown.acceleration.y = 600;
currentTimingShown.velocity.y -= 150;
Expand Down Expand Up @@ -3738,7 +3747,10 @@ class PlayState extends MusicBeatState
{
var numScore:FlxSprite = new FlxSprite().loadGraphic(Paths.loadImage(pixelShitPart1 + 'num' + Std.int(i) + pixelShitPart2, pixelShitPart3));
numScore.screenCenter();
numScore.x = rating.x + (43 * daLoop) - 50;

if(!FlxG.save.data.middleScroll) numScore.x = rating.x + (43 * daLoop) - 50;
else numScore.x = rating.x + (43 * daLoop) + 150;

numScore.y = rating.y + 100;
numScore.cameras = [camHUD];

Expand Down