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 5453
477 ??? 2 Man... 2008.10.27 1334
476 ??(다 영어)여기서 부터 드레그만 빼고 Man... 2008.10.27 1079
475 AutoLight v3.7(?) 6 Man... 2008.10.27 1647
474 Screen Shortcut Script Man... 2008.10.27 1142
473 다운로드 링크로 가세요.(스크린 샷 올려놨음) 5 Man... 2008.10.27 1618
» Scene_Credit script Plug & Play 1 Man... 2008.10.27 1086
471 LevelMe v1.2 3 Man... 2008.10.27 1154
470 Jens009's Critical Flash 1.0 3 Man... 2008.10.27 1240
469 컴퓨스트 플레이어 워크(?) 2 Man... 2008.10.27 1304
468 변수/스위치 MapSwitch VX Version: 1.1 1 Man... 2008.10.27 1327
467 Sprite Mover 2 Man... 2008.10.27 1529
466 (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
465 아이템 ~[Hide Item]~ Man... 2008.10.27 1599
464 Skill Delay VX 4 Man... 2008.10.28 1503
463 레오 저장 스크립트 9 Man... 2008.10.28 2529
462 Menu Background Effects(온라인 스크립트 올릴려고 했다가 못 올렸음)아깝다.. Man... 2008.10.28 1665
461 MAX Level Limitation System 3 Man... 2008.10.28 1198
460 Good VS EVil? 4 Man... 2008.10.28 1641
459 아이템 아이템 프라이스 체인저?? Man... 2008.10.28 2389
458 미니맵 Map-System by AmIMeYet [미니맵] 9 Man... 2008.10.28 2747
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