Ace 스크립트

타이틀/게임오버
2018.07.18 22:00

GG침 스크립트

조회 수 843 추천 수 0 댓글 0

 

이 스크립트는 게임 데이터를 날아가고 게임을 끄게 하는 것입니다.

 

이 스크립트는 Scenes 또는 장면 처리에 만드셔야 합니다.

#==============================================================================

# ** Scene_GG

#------------------------------------------------------------------------------

#  게임 항복을 처리하는 스크립트입니다.

#==============================================================================

 

class Scene_GG < Scene_Base

  #--------------------------------------------------------------------------

  # * Start Processing

  #--------------------------------------------------------------------------

  def start

    super

    play_gameover_music

    fadeout_frozen_graphics

    create_background

  end

  #--------------------------------------------------------------------------

  # * Termination Processing

  #--------------------------------------------------------------------------

  def terminate

    super

    dispose_background

  end

  #--------------------------------------------------------------------------

  # * Frame Update

  #--------------------------------------------------------------------------

  def update

    super

    goto_title if Input.trigger?(:C)

  end

  #--------------------------------------------------------------------------

  # * Execute Transition

  #--------------------------------------------------------------------------

  def perform_transition

    Graphics.transition(fadein_speed)

  end

  #--------------------------------------------------------------------------

  # * Play Music on GG Screen

  #--------------------------------------------------------------------------

  def play_gameover_music

    RPG::BGM.stop

    RPG::BGS.stop

    $data_system.gameover_me.play

  end

  #--------------------------------------------------------------------------

  # * Fade Out Frozen Graphics

  #--------------------------------------------------------------------------

  def fadeout_frozen_graphics

    Graphics.transition(fadeout_speed)

    Graphics.freeze

  end

  #--------------------------------------------------------------------------

  # * Create Background

  #--------------------------------------------------------------------------

  def create_background

    @sprite = Sprite.new

    @sprite.bitmap = Cache.system("YouAreGG")

  end

  #--------------------------------------------------------------------------

  # * Free Background

  #--------------------------------------------------------------------------

  def dispose_background

    @sprite.bitmap.dispose

    @sprite.dispose

  end

  #--------------------------------------------------------------------------

  # * Get Fade Out Speed

  #--------------------------------------------------------------------------

  def fadeout_speed

    return 60

  end

  #--------------------------------------------------------------------------

  # * Get Fade In Speed

  #--------------------------------------------------------------------------

  def fadein_speed

    return 120

  end

  #--------------------------------------------------------------------------

  # * Transition to Title Screen

  #--------------------------------------------------------------------------

  def goto_title

    fadeout_all

    SaveManager.delete_all

    SceneManager.exit

  end

 

 

GG 스크린(/Graphics/System에 복사하세요.

파일은 첨부되어있습니다.

 

GG 처리할떄 SceneManager.goto(Scene_GG)

 

그 다음 스크립트는 Materials 아래 삽입 후 적으세요.

module SaveManager

  extend self

  def delete_all

    arr = Dir["Save[0-9][0-9].rvdata2"]

    arr.each do |i|

      File.delete(i) if File.exist?(i)

    end

  end

end

 


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 5140
공지 RPG VX ACE 유용한 링크 모음 16 아방스 2012.01.03 28967
57 기타 VX ACE 오디오 암호화 스크립트 3 스리아씨 2013.10.22 1941
56 메뉴 시스템 칼라 스크립트 3 file 스리아씨 2013.10.27 3239
55 맵/타일 MGC님의 Mode 7 Ace 6 file 습작 2013.10.27 3471
54 전투 데미지의 한계치를 정하는 스크립트 3 file 스리아씨 2013.11.07 2051
53 전투 Yanfly 엔진 - 몬스터의 레벨 설정 6 file 스리아씨 2013.11.08 13006
52 타이틀/게임오버 [VX ACE]타이틀 화면에 맵을 표시하는 스크립트 4 file 스리아씨 2013.12.07 3544
51 그래픽 Galy`s 캐릭터 그래픽 커스텀 3 스리아씨 2013.12.17 4895
50 기타 Falcao - Falcao Pets Servants 6 file 혜인 2014.01.04 1838
49 이동 및 탈것 [RPG VX ACE]CSCA 텔레포트 스크립트 스리아씨 2014.01.05 2432
48 기타 Dialog Extractor 1.04 (VXA/VX/XP) 6 AltusZeon 2014.01.16 11680
47 그래픽 RGSS3 - CompositeGraphics 1 file 쿠쿠밥솥 2014.01.17 2612
46 기타 regendo - MenuScreen While Message 혜인 2014.01.23 1414
45 메시지 한국어 조사 처리 스크립트 (140130) 2 치리 2014.01.31 2650
44 장비 Equipment Set Bonuses by modern algebra 2 Alkaid 2014.02.08 1470
43 버그픽스 Large Sprite ☆ Display Fix by Neon Black Alkaid 2014.02.08 1245
42 키입력 Improved Imput System(part of DP Core) by DiamondandPlatinum3 1 Alkaid 2014.02.12 1264
41 기타 Map Screenshot by Tsukihime 2 Alkaid 2014.02.13 1832
40 맵/타일 Overlay Mapping by Lil'Yami 7 Alkaid 2014.02.14 2279
39 버그픽스 VX Ace Star Passibility Bug Fix by Neon Black 2 Alkaid 2014.02.26 1374
38 메뉴 메뉴창 없애기 2 file hamin 2014.02.28 3881
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11