VX 스크립트

Author: Azuaya
Version: 1.1 (Current)

Scene_Credit script. Plug & Play

Updates:
v1.0 : First released
v1.1 : Does not require Vocab stuff no more... and fixed a few things
여기서부터
#==============================================================================
# ** Scene_Credits by Azuaya
#------------------------------------------------------------------------------
#  This section shows options of starting credit, terminating it and back to title.
#==============================================================================

class Scene_Credits < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    create_graphic                       # Create graphic
    create_command_window          # Create command window
    play_music                    # Play selected music
  end
  #--------------------------------------------------------------------------
  # * Post-Start Processing
  #--------------------------------------------------------------------------
  def post_start
    super
    open_command_window
  end
  #--------------------------------------------------------------------------
  # * Pre-termination Processing
  #--------------------------------------------------------------------------
  def pre_terminate
    super
    close_command_window
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_command_window
    snapshot_for_background
    dispose_graphic
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0    #Show Credit
        command_start_credits
      when 1    #Close Credit
        command_terminate
      when 2    #Back to Title
        command_to_title
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Create Graphic
  #--------------------------------------------------------------------------
  def create_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system("Credit")    #Add an image in System for Credit
  end
  #--------------------------------------------------------------------------
  # * Dispose Graphic
  #--------------------------------------------------------------------------
  def dispose_graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = "Start Credit"
    s2 = "Terminate"
    s3 = Vocab::to_title
    @command_window = Window_Command.new(172, [s1, s2, s3])
    @command_window.x = ( 915 - @command_window.width) / 2
    @command_window.y = 280
    @command_window.opacity = 255

    @command_window.openness = 0
    @command_window.open
  end
  #--------------------------------------------------------------------------
  # * Dispose of Command Window
  #--------------------------------------------------------------------------
  def dispose_command_window
    @command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Open Command Window
  #--------------------------------------------------------------------------
  def open_command_window
    @command_window.open
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 255
  end
  #--------------------------------------------------------------------------
  # * Close Command Window
  #--------------------------------------------------------------------------
  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end
  #--------------------------------------------------------------------------
  # * Play Music
  #--------------------------------------------------------------------------
  def play_music
    Audio.bgm_play(" " , 100, 100)    #Add BGM and it will play that BGM
    RPG::BGS.stop
    RPG::ME.stop
  end
  #-----------------------------------------
  # * Show Credit
  #-----------------------------------------
  def command_start_credits
    $scene.credit.start
    close_command_window
    open_command_window
  end
  #-----------------------------------------
  #  * End Credit
  #-----------------------------------------
  def command_terminate
    $scene.credit.terminate
  end
  #--------------------------------------------------------------------------
  # * Back to Title
  #--------------------------------------------------------------------------
  def command_to_title
    $scene = Scene_Title.new
    close_command_window
  end
end

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5410
637 아이템 현재있는 파티원 선택 레벨업 아이템 만들기 1 file 싸패 2016.06.06 718
636 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 820
635 스킬 [RPG VX] 턴알 스킬 쿨타임 스크립트! (잘돌아감) 5 듀란테 2015.08.18 1675
634 메뉴 KGC - 커스텀 메뉴 커멘드 (번역) 1 듀란테 2015.07.27 1083
633 메뉴 Etude87's Menu Editor for VX 25 습작 2015.01.14 1465
632 기타 Gamepad Extender VX 습작 2015.01.02 674
631 버그픽스 DerVVulfman's Tileset Reader VX Bug Fix 습작 2014.11.16 702
630 장비 방어구 착용시 최대HP, MP증가 스크립트(턴알) 3 file 기관차 2014.11.06 1224
629 메뉴 Etude87_Ace_Style_Formation_Change ver.1.01 습작 2014.10.05 759
628 키입력 해외 제작자 He Who Jets님의 마우스 스크립트(mouse system) 1 file 보자기군 2014.09.30 1265
627 메시지 Etude87 Dialogue History Scene file 습작 2014.07.07 1071
626 메뉴 MOG - Scroll Bar for VX file 습작 2014.07.06 1116
625 이동 및 탈것 이동 기능 파워업 (장애물 등을 피하는 이동방식) 8 file 파노 2014.04.27 1725
624 타이틀/게임오버 Title Skip System : 타이틀 스킵 file 허걱 2014.03.19 1511
623 버그픽스 Graphical Object Global Reference VX by Mithran Alkaid 2014.03.03 1029
622 기타 장애물을 피하고 다가오게 하는 스크립트 5 file 박력남 2014.02.25 1879
621 버그픽스 애니메이션 표시 위치 수정 (Fix Animation Position) 2 file AltusZeon 2014.02.12 1291
620 전투 [RPG VX]기술에 쿨타임을 부여하는 스크립트 3 스리아씨 2013.12.05 2355
619 HUD 아방스님이 올린 HUD를 개조했습니다. 7 file 스리아씨 2013.09.30 2686
618 전투 SRPGコンバータ for VX by AD.Bank 습작 2013.05.13 2976
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