From 70fbd200bdf03aeb3910cdd7ee56dbffd6a7cb09 Mon Sep 17 00:00:00 2001 From: kade-github <26305836+Kade-github@users.noreply.github.com> Date: Sat, 28 Jun 2025 23:40:04 -0700 Subject: [PATCH] video offsets --- source/funkin/graphics/video/FunkinVideoSprite.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/funkin/graphics/video/FunkinVideoSprite.hx b/source/funkin/graphics/video/FunkinVideoSprite.hx index d0b60ea29..18b0009f3 100644 --- a/source/funkin/graphics/video/FunkinVideoSprite.hx +++ b/source/funkin/graphics/video/FunkinVideoSprite.hx @@ -2,6 +2,7 @@ package funkin.graphics.video; #if hxvlc import hxvlc.flixel.FlxVideoSprite; +import funkin.Preferences; /** * Not to be confused with FlxVideo, this is a hxvlc based video class @@ -13,6 +14,13 @@ class FunkinVideoSprite extends FlxVideoSprite public function new(x:Float = 0, y:Float = 0) { super(x, y); + // null safety fucking SUCKS + if (bitmap != null) + { + bitmap.onOpening.add(function():Void { + if (bitmap != null) bitmap.audioDelay = Preferences.globalOffset * 1000; // Microseconds + }); + } } } #end