Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Goldaryn Multiple Resolution Kit
#9
I've changed around a lot of this script in the version in my project, so the only real recommendation I can give is to find CENTER_X and replace the block of code there. I'm using the SDK version, but it's between the changes to Spriteset_Map and Game_Map in one of the scripts.

... aha, I think this is the original block of code:
PHP Code:
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  This class handles the player. Its functions include event starting
#  determinants and map scrolling. Refer to "$game_player" for the one
#  instance of this class.
#------------------------------------------------------------------------------
# This has been edited define the actual center of the screen
#==============================================================================
class Game_Player
  
#--------------------------------------------------------------------------
  # * Invariables
  #--------------------------------------------------------------------------
  
def CENTER_X
    
(Game_Window.width/16) * 4   # Center screen x-coordinate * 4
  
end
  
  def CENTER_Y
    
(Game_Window.height/16) * 4   # Center screen y-coordinate * 4
  
end
  
  
#--------------------------------------------------------------------------
  # * Set Map Display Position to Center of Screen
  #--------------------------------------------------------------------------
  
def center(xy)
    
max_x = ($game_map.width Game_Window.width/32) * 128
    max_y 
= ($game_map.height Game_Window.height/32) * 128
    $game_map
.display_x = [0, [128 CENTER_Xmax_x].min].max
    $game_map
.display_y = [0, [128 CENTER_Ymax_y].min].max
  end
end 

However I've also noticed recently that I've been getting an overflow - I assume with my edit - the screen overestimates the right edge of the map, causing it to scroll one column of tiles too far. I haven't been worrying about this so far because I don't want to have the player ever near the edge of the screen, but... you might, so yeah.
Reply }


Messages In This Thread
RE: Goldaryn Multiple Resolution Kit - by Taylor - 04-09-2012, 05:41 AM
RE: Goldaryn Multiple Resolution Kit - by Taylor - 12-17-2012, 09:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Resolution Selwyn 20 35,732 04-14-2017, 12:32 AM
Last Post: xiaohuangdi001
   Victor Engine - Multiple Troops Victor Sant 0 3,826 12-21-2011, 05:47 PM
Last Post: Victor Sant
   Multiple Fogs woratana 0 5,550 01-22-2009, 01:16 PM
Last Post: woratana
   Resolution Changer VX syvkal 0 5,739 03-08-2008, 04:15 AM
Last Post: syvkal
   Multiple Parties Dargor 0 4,360 03-07-2008, 04:17 AM
Last Post: Dargor
   Seperate Item Lists for Multiple Parties RPG Advocate 0 4,796 03-03-2008, 06:02 AM
Last Post: RPG Advocate



Users browsing this thread: