diff --git a/source/funkin/play/notes/notestyle/NoteStyle.hx b/source/funkin/play/notes/notestyle/NoteStyle.hx index de3927f6f42..cd83556b9ae 100644 --- a/source/funkin/play/notes/notestyle/NoteStyle.hx +++ b/source/funkin/play/notes/notestyle/NoteStyle.hx @@ -86,6 +86,9 @@ class NoteStyle implements IRegistryEntry target.antialiasing = !(_data.assets?.note?.isPixel ?? false); + var noteOffsets:Array = getNoteOffsets(); + target.offset.set(noteOffsets[0], noteOffsets[1]); + // Apply the animations. buildNoteAnimations(target); @@ -180,6 +183,11 @@ class NoteStyle implements IRegistryEntry return _data.assets?.note?.scale ?? fallback?.getNoteScale() ?? 1.0; } + public function getNoteOffsets():Array + { + return _data?.assets?.note?.offsets ?? fallback?.getNoteOffsets() ?? [0.0, 0.0]; + } + function fetchNoteAnimationData(dir:NoteDirection):Null { var result:Null = switch (dir)