From 5489ed932fb278d193cb3a52a394e1c30174cd6e Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Thu, 21 May 2026 00:50:18 +0300 Subject: [PATCH] camera fix idk --- scripts/Game_Map.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/Game_Map.rb b/scripts/Game_Map.rb index 4a5c505..883418b 100644 --- a/scripts/Game_Map.rb +++ b/scripts/Game_Map.rb @@ -268,7 +268,11 @@ class Game_Map #-------------------------------------------------------------------------- def scroll_down(distance) if $game_switches[98] == true - @display_y = [@display_y + distance, (self.height - Graphics.height / 28) * 128].min + if self.height < Graphics.height / 28 + @display_y = self.height / 2 + else + @display_y = [@display_y + distance, (self.height - Graphics.height / 28) * 128].min + end else @display_y += distance end @@ -301,7 +305,11 @@ class Game_Map #-------------------------------------------------------------------------- def scroll_up(distance) if $game_switches[98] == true - @display_y = [@display_y - distance, 0].max + if self.height < Graphics.height / 28 + @display_y = self.height / 2 + else + @display_y = [@display_y - distance, 0].max + end else @display_y -= distance end