From a2c2b8d9dd8aba927fef5539ee4ab287c955fe19 Mon Sep 17 00:00:00 2001 From: KarimAkra Date: Mon, 23 Dec 2024 00:43:36 +0200 Subject: [PATCH] Fixed the FPS counter position and removed skipping with touch from AttractState --- source/Main.hx | 2 +- source/funkin/ui/title/AttractState.hx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/Main.hx b/source/Main.hx index 15c7ab7bc..79eb53a2e 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -184,7 +184,7 @@ class Main extends Sprite { fpsCounter.scaleX = fpsCounter.scaleY = #if android (scale > 1 ? scale : 1) #else (scale < 1 ? scale : 1) #end; #if mobile - fpsCounter.x = FlxG.game.x + FullScreenScaleMode.notchSize.x +; + fpsCounter.x = FlxG.game.x + FullScreenScaleMode.notchSize.x + 10; #end } diff --git a/source/funkin/ui/title/AttractState.hx b/source/funkin/ui/title/AttractState.hx index 401ec006e..0b49cdd99 100644 --- a/source/funkin/ui/title/AttractState.hx +++ b/source/funkin/ui/title/AttractState.hx @@ -104,9 +104,8 @@ class AttractState extends MusicBeatState { super.update(elapsed); - // If the user presses any button, skip the video. - if ((FlxG.keys.justPressed.ANY && !controls.VOLUME_MUTE && !controls.VOLUME_UP && !controls.VOLUME_DOWN) #if mobile - || funkin.mobile.util.TouchUtil.justPressed #end) + // If the user presses any button or holds the screen for 0.8 seconds, skip the video. + if ((FlxG.keys.justPressed.ANY && !controls.VOLUME_MUTE && !controls.VOLUME_UP && !controls.VOLUME_DOWN)) { onAttractEnd(); }