VX 스크립트

중복이면 바로 삭제할께염 ㅇㅅㅇ

 

일단 이 스크립트는 검정여백을 없애주는 스크립트 입니다.

 

스크립트 사용 전↓

 

 

스크립트 사용 후↓

 

아 그리구...

Graphics/System/Title.png

이... 이파일 크기를 가로 640 세로 480으로 해야합니다...

스크립트

 

 

 

 

#==============================================================================
# ** TDS Resolution Change[VX]
# Version: 1.8
#------------------------------------------------------------------------------
# This script changes the resolution from the default VX resolution
# of 544 x 416 to 640 x 480 RMXP Resolution
#==============================================================================
#--------------------------------------------------------------------------
# * Graphics - Rezise Screen
#--------------------------------------------------------------------------
Graphics.resize_screen(640, 480)
#==============================================================================
# ▼ Game Objects
#------------------------------------------------------------------------------
# All clases below the Game Objects tab
#==============================================================================
#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================
class Game_Map
  #--------------------------------------------------------------------------
  # * Scroll Setup
  #-------------------------------------------------------------------------- 
  alias tds_vx_resolution_change_setup_scroll setup_scroll
  def setup_scroll
    tds_vx_resolution_change_setup_scroll   
    @scroll_direction = 2
    @scroll_rest = 0
    @scroll_speed = 4
    @margin_x = (width - 20) * 256 / 2      # Screen non-display width /2
    @margin_y = (height - 15) * 256 / 2     # Screen non-display height /2
  end 
 
  #--------------------------------------------------------------------------
  # * Calculate X coordinate for parallax display
  #     bitmap : Parallax bitmap
  #-------------------------------------------------------------------------- 
  alias tds_vx_resolution_change_calc_parallax_x calc_parallax_x
  def calc_parallax_x(bitmap)
    tds_vx_resolution_change_calc_parallax_x(bitmap)   
    if bitmap == nil
      return 0
    elsif @parallax_loop_x
      return @parallax_x / 16
    elsif loop_horizontal?
      return 0
    else
      w1 = bitmap.width - 640
      w2 = @map.width * 32 - 640
      if w1 <= 0 or w2 <= 0
        return 0
      else
        return @parallax_x * w1 / w2 / 8
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Calculate Y coordinate for parallax display
  #     bitmap : Parallax bitmap
  #--------------------------------------------------------------------------
  alias tds_vx_resolution_change_calc_parallax_y calc_parallax_y 
  def calc_parallax_y(bitmap)
    tds_vx_resolution_change_calc_parallax_y(bitmap)   
    if bitmap == nil
      return 0
    elsif @parallax_loop_y
      return @parallax_y / 16
    elsif loop_vertical?
      return 0
    else
      h1 = bitmap.height - 480
      h2 = @map.height * 32 - 480
      if h1 <= 0 or h2 <= 0
        return 0
      else
        return @parallax_y * h1 / h2 / 8
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Scroll Down
  #     distance : scroll distance
  #     *Note: Could not be aliased because it causes the scrolling to look
  #            Unnatural
  #-------------------------------------------------------------------------- 
  def scroll_down(distance)
    if loop_vertical?
      @display_y += distance
      @display_y %= @map.height * 256
      @parallax_y += distance
    else
      last_y = @display_y
      @display_y = [@display_y + distance, (height - 15) * 256].min
      @parallax_y += @display_y - last_y
    end
  end
  #--------------------------------------------------------------------------
  # * Scroll Right
  #     distance : scroll distance
  #     *Note: Could not be aliased because it causes the scrolling to look
  #            Unnatural
  #-------------------------------------------------------------------------- 
  def scroll_right(distance)
    if loop_horizontal?
      @display_x += distance
      @display_x %= @map.width * 256
      @parallax_x += distance
    else
      last_x = @display_x
      @display_x = [@display_x + distance, (width - 20) * 256].min
      @parallax_x += @display_x - last_x
    end
  end
end
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  This class handles maps. It includes event starting determinants and map
# scrolling functions. The instance of this class is referenced by $game_map.
#==============================================================================
class Game_Player < Game_Character
  #--------------------------------------------------------------------------
  # * Constants
  #-------------------------------------------------------------------------- 
  CENTER_X = (640 / 2 - 16) * 8     # Screen center X coordinate * 8
  CENTER_Y = (480 / 2 - 16) * 8     # Screen center X coordinate * 8 
  #--------------------------------------------------------------------------
  # * Set Map Display Position to Center of Screen
  #     x : x-coordinate
  #     y : y-coordinate
  #-------------------------------------------------------------------------- 
  alias tds_vx_resolution_change_center center 
  def center(x, y)
    tds_vx_resolution_change_center(x, y)   
    display_x = x * 256 - CENTER_X                    # Calculate coordinates
    unless $game_map.loop_horizontal?                 # No loop horizontally?
      max_x = ($game_map.width - 20) * 256            # Calculate max value
      display_x = [0, [display_x, max_x].min].max     # Adjust coordinates
    end
    display_y = y * 256 - CENTER_Y                    # Calculate coordinates
    unless $game_map.loop_vertical?                   # No loop vertically?
      max_y = ($game_map.height - 15) * 256           # Calculate max value
      display_y = [0, [display_y, max_y].min].max     # Adjust coordinates
    end
    $game_map.set_display_pos(display_x, display_y)   # Change map location
  end
end
#==============================================================================
# ▼ Sprites
#------------------------------------------------------------------------------
# All clases below the Sprites tab
#==============================================================================
#==============================================================================
# ** Sprite_Base
#------------------------------------------------------------------------------
#  A sprite class with animation display processing added.
#==============================================================================
class Sprite_Base < Sprite
  #--------------------------------------------------------------------------
  # * Start Animation
  #-------------------------------------------------------------------------- 
  alias tds_vx_resolution_change_start_animation start_animation 
  def start_animation(animation, mirror = false)
    tds_vx_resolution_change_start_animation(animation, mirror = false)   
    dispose_animation
    @animation = animation
    return if @animation == nil
    @animation_mirror = mirror
    @animation_duration = @animation.frame_max * 4 + 1
    load_animation_bitmap
    @animation_sprites = []
    if @animation.position != 3 or not @@animations.include?(animation)
      if @use_sprite
        for i in 0..15
          sprite = ::Sprite.new(viewport)
          sprite.visible = false
          @animation_sprites.push(sprite)
        end
        unless @@animations.include?(animation)
          @@animations.push(animation)
        end
      end
    end
    if @animation.position == 3
      if viewport == nil
        @animation_ox = 640 / 2
        @animation_oy = 480 / 2
      else
        @animation_ox = viewport.rect.width / 2
        @animation_oy = viewport.rect.height / 2
      end
    else
      @animation_ox = x - ox + width / 2
      @animation_oy = y - oy + height / 2
      if @animation.position == 0
        @animation_oy -= height / 2
      elsif @animation.position == 2
        @animation_oy += height / 2
      end
    end
  end
end
#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
#  This class brings together map screen sprites, tilemaps, etc. It's used
# within the Scene_Map class.
#==============================================================================
class Spriteset_Map
  #--------------------------------------------------------------------------
  # * Create Viewport
  #-------------------------------------------------------------------------- 
  alias tds_vx_resolution_change_create_viewports create_viewports
  def create_viewports
    tds_vx_resolution_change_create_viewports   
    @viewport1 = Viewport.new(0, 0, 640, 480)
    @viewport2 = Viewport.new(0, 0, 640, 480)
    @viewport3 = Viewport.new(0, 0, 640, 480)
    @viewport2.z = 50
    @viewport3.z = 100
  end
end

 

 

 

여기까지임니당...

Who's 쿠쿠밥솥

profile

쿠쿠밥솥 -> zubako

Comment '6'
  • profile
    쿠쿠밥솥 2012.01.10 08:46

    아아 맵의 크기가 ( 가로:20 , 세로:15 )가이상이여야 부드러워요...

    ( 가로:17 , 세로:13 )으루하면... ㅋㅋㅋㅋ

  • profile
    쉰라면블랙 2012.01.10 22:26

    메뉴창, 메세지창이 붕떳다... ㄷㄷㄷ

    전투화면도 타이틀도 맵의 크기도 다 설정해야돼내요

    메뉴창, 메시지창이 너무 부자연 스럽내... 이거를 고칠수만 잇으면,.. 좋을텐데..

    그러긴 힘들것같군요.

  • ?
    싸이비 2012.01.13 12:33

    고칠수만 있으면 좋겠는데...ㅠㅠ

  • profile
    쿠쿠밥솥 2012.01.21 17:30

    스크립트 모두 숫자를 Ctrl + H 를 이용해서

       544 -> 640

       416 -> 480

       288 -> 352

                          ┘

    로 모두 고치면 되요...

    힘드러요...ㅜㅜ

  • ?
    오오모리노 2012.10.28 21:06
    저기 이거를 ace용으로 변환 할 수 있나요?
  • ?
    버블레오 2016.01.02 10:37
    잘 쓰겠습니다

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
597 상점 스킬 샾 스크립트 2.0 48 아방스 2008.03.05 6628
596 메뉴 매우 간단명료한 메뉴. 32 file 비극ㆍ 2010.04.23 6618
595 미니맵 KGC 미니맵 스크립트 (한글번역) 45 file 레오 2009.02.01 6555
594 이동 및 탈것 동료가 따라다니게 하는 스크립트 59 file 아방스 2008.01.23 6512
593 맵/타일 추가 맵칩 사용 - 공개 34 file 허걱 2009.08.19 6491
592 메시지 캐릭터 대화상자 - Character's Textbox ver 1.0 6 아방스 2010.12.17 6455
591 전투 RPG Tankentai SBS 3.4d + ATB 1.2c Kaduki 18 시트르산 2010.09.10 6449
590 HUD KH HUD (HP MP 게이지바 스크립트) 41 아방스 2010.12.17 6421
589 온라인 net VX[ RPGVX 온라인 스크립트 ] 19 file 제로스S2 2009.08.03 6389
588 메뉴 김태히님이 개조한 모그메뉴 스텟화면 43 file RPGbooster 2008.10.08 6360
587 온라인 온라인입니다 4 file 알피지GM 2010.03.07 6358
586 상점 상점을 색다르게 바꿔주는 스크립트 34 file 할렘 2009.02.02 6301
585 메뉴 파이날 판타지 IX 메뉴. 12 file 할렘 2009.02.06 6286
584 메시지 메시지 표시 시스템 [NMS3] 31 아방스 2009.01.24 6248
583 메뉴 스테이터스 창을 멋있게 쿨하게~!전신을 보여주자. 24 file 할렘 2009.02.06 6236
582 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
581 미니맵 미니맵 스크립트(아랫거랑 다른거) 75 file 츠키아 2008.08.08 6145
580 타이틀/게임오버 타이틀화면 커스터마이즈 29 file 可わいい 2009.03.16 6141
579 전투 GTBS 1.0 [스크립트] 24 아방스 2009.02.05 6141
578 퀘스트 퀘스트 스크립트 39 file RPGbooster 2008.10.11 6139
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32