Fix note positioning

This commit is contained in:
CuckyDev
2021-07-11 18:04:30 -04:00
parent 910105b852
commit ad89799f58
2 changed files with 34 additions and 16 deletions

View File

@ -67,7 +67,12 @@ class Note extends FlxSprite
this.prevNote = prevNote;
isSustainNote = sustainNote;
x += 50;
this.noteData = noteData;
if (!inCharter)
x = PlayState.strumLineNotes.members[Math.floor(Math.abs(noteData))].x;
else
x += 50;
// MAKE SURE ITS DEFINITELY OFF SCREEN?
y -= 2000;
@ -86,8 +91,6 @@ class Note extends FlxSprite
if (this.strumTime < 0 )
this.strumTime = 0;
this.noteData = noteData;
var daStage:String = PlayState.curStage;
//defaults if no noteStyle was found in chart
@ -177,20 +180,20 @@ class Note extends FlxSprite
noteScore * 0.2;
alpha = 0.6;
x += width / 2;
x += width / 2 + 17;
if (noteTypeCheck == 'pixel')
x -= 8;
//x += width / 2;
originColor = prevNote.originColor;
animation.play(dataColor[originColor] + 'holdend'); // This works both for normal colors and quantization colors
updateHitbox();
x -= width / 2;
//x -= width / 2;
if (noteTypeCheck == 'pixel')
x += 30;
if (inCharter)
x += 30;
//if (PlayState.curStage.startsWith('school'))
// x += 30;
if (prevNote.isSustainNote)
{