a lot of little fixes and alt animation per notes

This commit is contained in:
KadeDeveloper
2021-08-12 19:07:36 -07:00
parent 63ac4ec3d8
commit e09957267c
8 changed files with 152 additions and 89 deletions

View File

@@ -35,6 +35,8 @@ class Note extends FlxSprite
public var originColor:Int = 0; // The sustain note's original note's color
public var noteSection:Int = 0;
public var isAlt:Bool = false;
public var noteCharterObject:FlxSprite;
public var noteScore:Float = 1;
@@ -63,13 +65,15 @@ class Note extends FlxSprite
public var children:Array<Note> = [];
public function new(strumTime:Float, noteData:Int, ?prevNote:Note, ?sustainNote:Bool = false, ?inCharter:Bool = false)
public function new(strumTime:Float, noteData:Int, ?prevNote:Note, ?sustainNote:Bool = false, ?inCharter:Bool = false, ?isAlt:Bool = false)
{
super();
if (prevNote == null)
prevNote = this;
this.isAlt = isAlt;
this.prevNote = prevNote;
isSustainNote = sustainNote;