sustain stuff

This commit is contained in:
Yoshman29
2022-12-05 23:37:18 +01:00
parent deb063da78
commit faefa2217f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ class Note extends FlxSprite
public var sustainLength:Float = 0;
public var stepLength:Float = 0;
public var isSustainNote:Bool = false;
public var flipSustain:Bool = true;
public var noteTypeID:Int = 0;
+1 -1
View File
@@ -76,7 +76,7 @@ class Strum extends FlxSprite {
public function updateSustain(daNote:Note) {
if (!daNote.isSustainNote) return;
daNote.flipY = PlayState.instance.downscroll != (getScrollSpeed(daNote) < 0);
daNote.flipY = daNote.flipSustain && (PlayState.instance.downscroll != (getScrollSpeed(daNote) < 0));
daNote.updateSustain(this);
}