camera fix idk

This commit is contained in:
Issac332 2026-05-21 00:50:18 +03:00
parent 48917137f3
commit 5489ed932f
1 changed files with 10 additions and 2 deletions

View File

@ -268,7 +268,11 @@ class Game_Map
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
def scroll_down(distance) def scroll_down(distance)
if $game_switches[98] == true 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 else
@display_y += distance @display_y += distance
end end
@ -301,7 +305,11 @@ class Game_Map
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
def scroll_up(distance) def scroll_up(distance)
if $game_switches[98] == true 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 else
@display_y -= distance @display_y -= distance
end end