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
177 저장 Neo Save System V by Helladen(Original by Woratana) 8 Alkaid 2010.09.02 2438
176 제작도구 Window Maker by Jet 12 Alkaid 2010.09.26 2436
175 맵/타일 Etude87_Map_Remember_VX ver.1.2 3 습작 2012.03.06 2429
174 기타 레벨업 시 증가분의 HP/MP 회복 10 시트르산 2010.09.12 2427
173 기타 좀 뭐랄까... 어이없는 "비행선 더 높게 날아오르게 하기!"스크립트.... 8 루시페르 2009.06.06 2426
172 이동 및 탈것 느리게 걷기 5 허걱 2009.08.23 2424
171 맵/타일 Map Saver 17 file 비극ㆍ 2010.04.18 2415
170 아이템 아이템의 공격횟수 추가 8 star211 2010.01.19 2413
169 Enable Usage of Rmxp 캐릭터(?) 5 Man... 2008.10.28 2413
168 상태/속성 Full Status CMS 1.0d by Modern Algebra 1 file Alkaid 2010.09.03 2408
167 메시지 넘버님의로딩수정101번눌르긴그레서..... 7 file 알피지vx초짜 2010.01.22 2394
166 기타 회피,명중,크리 스테이트를 작성하는 스크립트 9 카르와푸딩의아틀리에 2009.06.30 2393
165 스킬 훔치기 스킬을 만드는 스크립트! 5 우켈킁 2011.03.31 2390
164 변수/스위치 다른 이벤트 셀프스위치 조작 - xp, vx 사용가능 3 허걱 2009.07.18 2387
163 아이템 아이템 프라이스 체인저?? Man... 2008.10.28 2385
162 전투 대미지 MP전환 스테이트 : 수정 => 마나쉴드 7 Evangelista 2009.08.29 2384
161 맵/타일 Tileset Reader VX 2.1 by DerVVulfman 4 Alkaid 2010.09.20 2375
160 기타 [VX] Anti-Lag 1.2c by Anaryu[예제첨부] 3 file WMN 2008.04.06 2371
159 기타 타격관계도 등의 한계돌파 11 시트르산 2010.09.10 2365
158 파티 Party Changer 3.9 by Dargor 5 file Alkaid 2010.09.12 2364
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