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 5398
17 Screen Resolution 3 Man... 2008.10.28 1171
16 LevelMe v1.2 3 Man... 2008.10.27 1154
15 Screen Shortcut Script Man... 2008.10.27 1142
14 메뉴 MOG - Scroll Bar for VX file 습작 2014.07.06 1115
13 Multi-threader snippet by Omegazion Man... 2008.10.28 1107
» Scene_Credit script Plug & Play 1 Man... 2008.10.27 1085
11 ??(다 영어)여기서 부터 드레그만 빼고 Man... 2008.10.27 1078
10 메뉴 KGC - 커스텀 메뉴 커멘드 (번역) 1 듀란테 2015.07.27 1077
9 메시지 Etude87 Dialogue History Scene file 습작 2014.07.07 1069
8 키입력 No F1, F12 and Alt+Return (Kein F1, F12 und Alt+Eingabe) by cremno 습작 2013.04.19 1046
7 버그픽스 Graphical Object Global Reference VX by Mithran Alkaid 2014.03.03 1026
6 ??? 1 Man... 2008.10.27 1020
5 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 815
4 메뉴 Etude87_Ace_Style_Formation_Change ver.1.01 습작 2014.10.05 758
3 아이템 현재있는 파티원 선택 레벨업 아이템 만들기 1 file 싸패 2016.06.06 713
2 버그픽스 DerVVulfman's Tileset Reader VX Bug Fix 습작 2014.11.16 699
1 기타 Gamepad Extender VX 습작 2015.01.02 672
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32