Fix note scaling with one simple trick!

This commit is contained in:
dombomb64 2024-09-17 13:50:59 -04:00
parent 1fc835494d
commit 0706192cbe
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ class StrumlineNote extends FlxSprite
noteStyle.applyStrumlineFrames(this);
noteStyle.applyStrumlineAnimations(this, this.direction);
this.setGraphicSize(Std.int(Strumline.STRUMLINE_SIZE * noteStyle.getStrumlineScale()));
this.scale.set(noteStyle.getStrumlineScale());
this.updateHitbox();
noteStyle.applyStrumlineOffsets(this);

View file

@ -93,7 +93,7 @@ class NoteStyle implements IRegistryEntry<NoteStyleData>
buildNoteAnimations(target);
// Set the scale.
target.setGraphicSize(Strumline.STRUMLINE_SIZE * getNoteScale());
target.scale.set(getNoteScale());
target.updateHitbox();
}