This commit is contained in:
Yoshman29
2022-11-01 16:14:41 +01:00
parent 94f0618c1a
commit 2d06e3bb0f
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
932 934
+5 -1
View File
@@ -137,6 +137,9 @@ class Note extends FlxSprite
public var angleOffsets:Bool = true; public var angleOffsets:Bool = true;
override function draw() { override function draw() {
var negativeScroll = isSustainNote && nextSustain != null && lastScrollSpeed < 0;
if (negativeScroll) offset.y *= -1;
if (angleOffsets && Std.int(angle % 360) != 0) { if (angleOffsets && Std.int(angle % 360) != 0) {
// get default values // get default values
var oldOffset = FlxPoint.get(offset.x, offset.y); var oldOffset = FlxPoint.get(offset.x, offset.y);
@@ -178,6 +181,7 @@ class Note extends FlxSprite
return; return;
} }
super.draw(); super.draw();
if (negativeScroll) offset.y *= -1;
} }
// The * 0.5 is so that it's easier to hit them too late, instead of too early // The * 0.5 is so that it's easier to hit them too late, instead of too early
@@ -194,7 +198,7 @@ class Note extends FlxSprite
if (nextSustain != null && lastScrollSpeed != scrollSpeed) { if (nextSustain != null && lastScrollSpeed != scrollSpeed) {
// is long sustain // is long sustain
lastScrollSpeed = scrollSpeed; lastScrollSpeed = scrollSpeed;
scale.y = Conductor.stepCrochet / 100 * 1.5 * scrollSpeed * 0.7; scale.y = Conductor.stepCrochet / 100 * 1.5 * scrollSpeed * 0.7;
updateHitbox(); updateHitbox();
} }