better than before

This commit is contained in:
Kade M
2021-06-04 19:07:04 -07:00
parent ae7dcea22b
commit 0384a182e4
2 changed files with 107 additions and 86 deletions

View File

@ -25,6 +25,7 @@ class Note extends FlxSprite
public var prevNote:Note;
public var modifiedByLua:Bool = false;
public var sustainLength:Float = 0;
public var hit:Bool = false;
public var isSustainNote:Bool = false;
public var noteScore:Float = 1;
@ -179,6 +180,9 @@ class Note extends FlxSprite
else
prevNote.scale.y *= Conductor.stepCrochet / 100 * 1.5 * PlayState.SONG.speed;
prevNote.updateHitbox();
// prevNote.setGraphicSize();
}
@ -194,7 +198,6 @@ class Note extends FlxSprite
// ass
if (isSustainNote)
{
trace('sustain note');
if (strumTime > Conductor.songPosition - (Conductor.safeZoneOffset * 1.5)
&& strumTime < Conductor.songPosition + (Conductor.safeZoneOffset * 0.5))
canBeHit = true;