XP 스크립트

타이틀/게임오버
2008.03.17 18:11

타이틀에 글씨 박기 .

WMN
조회 수 2721 추천 수 0 댓글 11

아래의 스크립트를 스크립트 에디터의 메인 위에 삽입해주시면 됩니다. 제목 쓰는 곳이라는 글씨를

 

바꿔주면 박을 글씨를 설정할 수 있습니다.

 

출처 : http://rpgxp.zetyx.net/

 

#==============================================================================
# ■ ゲ?ムタイトルの表示(ver 0.98)
#==============================================================================


#==============================================================================
# □ 커스터마이즈 포인트
#==============================================================================
module PLAN_TITLE_NAME
  TITLE_STR     = "제목 쓰는 곳"
  FONT_NAME     = ["굴림체", "고딕체"]    # 폰트
  FONT_SIZE     =   60                              # font size
  FONT_BOLD     = true                              # true = 굵은 글씨 false = 안 굵은 글씨
  FONT_ITALIC   = false                             # true = 이탤릭체
  STR_COLOR     = Color.new( 100, 110,  62)         #  문자의 색
  DRAW_FRAME    = true                              # true = 제목이 깜빡임
  FRAME_COLOR   = Color.new(0, 0, 0)                # 깜빡일 때 바뀌는 색
  DRAW_X        =    0                              # X 좌표 수정치
  DRAW_Y        = -100                              # Y 좌표 수정치
  BLINK         = true                              # 점멸
end

 

#==============================================================================
# ■ Scene_Title
#==============================================================================

class Scene_Title
  #--------------------------------------------------------------------------
  # ● メイン?理
  #--------------------------------------------------------------------------
  alias plan_title_name_main main
  def main
    # ??テストの場合
    if $BTEST
      battle_test
      return
    end
    # スプライトの作成
    @title_name_sprite = RPG::Sprite.new
    @title_name_sprite.z = 100
    bitmap = Bitmap.new(32, 32)
    bitmap.font.name = PLAN_TITLE_NAME::FONT_NAME
    bitmap.font.size = PLAN_TITLE_NAME::FONT_SIZE
    bitmap.font.bold = PLAN_TITLE_NAME::FONT_BOLD
    rect = bitmap.text_size(PLAN_TITLE_NAME::TITLE_STR)
    bitmap.dispose
    bitmap = nil
    @title_name_sprite.bitmap = Bitmap.new(rect.width, rect.height)
    @title_name_sprite.bitmap.font.name   = PLAN_TITLE_NAME::FONT_NAME
    @title_name_sprite.bitmap.font.size   = PLAN_TITLE_NAME::FONT_SIZE
    @title_name_sprite.bitmap.font.bold   = PLAN_TITLE_NAME::FONT_BOLD
    @title_name_sprite.bitmap.font.italic = PLAN_TITLE_NAME::FONT_ITALIC

    str = PLAN_TITLE_NAME::TITLE_STR
    if PLAN_TITLE_NAME::DRAW_FRAME
      @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::FRAME_COLOR
      if defined?(@title_name_sprite.bitmap.draw_text_plan_frame)
        @title_name_sprite.bitmap.draw_text_plan_frame(0, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(2, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(0, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(2, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
        @title_name_sprite.bitmap.draw_text_plan_frame(1, 1, rect.width, rect.height, str)
      else
        @title_name_sprite.bitmap.draw_text(0, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(2, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(0, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(2, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
        @title_name_sprite.bitmap.draw_text(1, 1, rect.width, rect.height, str)
      end
    else
      @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
      @title_name_sprite.bitmap.draw_text(rect, str)
    end
    @title_name_sprite.x = 640 / 2 - rect.width / 2 + PLAN_TITLE_NAME::DRAW_X
    @title_name_sprite.y = 480 / 2 - rect.height / 2 + PLAN_TITLE_NAME::DRAW_Y
    @title_name_sprite.blink_on if PLAN_TITLE_NAME::BLINK
    # 元のメソッドに?す
    plan_title_name_main
    # スプライトの解放
    @title_name_sprite.bitmap.dispose
    @title_name_sprite.dispose
  end
  #--------------------------------------------------------------------------
  # ● フレ?ム更新
  #--------------------------------------------------------------------------
  alias plan_title_name_update update
  def update
    # スプライトの更新
    @title_name_sprite.update
    # 元のメソッドに?す
    plan_title_name_update
  end
end

 
ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ

Who's WMN

?
 
 

  W M  N  
                  자료공유

Comment '11'
  • ?
    작은악마 2008.03.19 18:46
    아 글씨폰트를 바꾸는건가요?/
  • ?
    음악시간'-'* 2008.04.06 11:38

    우왓 ! 신기하네요 ;ㅁ; 잘쓰게씁니다 ^ㅇ^!!

  • ?
    별가 2008.08.06 18:50
    !! 이거찾던 중 너무 감사드립니다 ㅠㅠㅠ 감사용
  • profile
    ⌒_⌒ 2009.02.28 17:23
    감사합니다. 멋있네요~~!
  • ?
    메루스 2010.01.26 23:01

    감사 합니다

  • ?
    Krrrr7 2010.05.04 19:22

    음. 잘쓸께요~

  • ?
    ㅓ나ㅣ러마니어 2010.09.05 19:41

    일부러 타이틀에 제목을 넣을 필요가 없군요

    그런데

    true를 바꿔도

    깜빡이는게 안멈추네욤

     

  • ?
    게마 2010.11.18 16:40

    여기에 바이러스가 있네요.....

  • ?
    대작만들거임 2011.07.01 16:56

    잘됩니다.이런거를 찾고있었는데, 잘됬네요.감사합니다.

  • ?
    이리엘 2012.07.31 23:44

    유용하네요.제목에 라틴어 박았습니다..(그런데 깨지더라고요..orz)

  • profile
    아방스닉넴 2014.11.23 01:33
    오 사용법은 뭔가요?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
781 스킬 [KGC] 다단공격 (즉, 여러번 공격하는 스킬) 10 백호 2009.02.21 2817
780 상태/속성 [■ Window_ShopStatus] 상점에서 캐릭터의 상세정보를 보여주는 스크립트 15 file 제로스S2 2009.08.06 2812
779 이름입력 RPG Advocate의 이름 입력 스크립트를 약간 손댄 것 Alkaid 2012.01.28 2784
778 액터 크리쳐 합체, 'SW_CreatureMix(for_rmxp)' by SiotWarrior 21 file 시옷전사 2010.09.11 2777
777 메뉴 메뉴화면 변경 스크립트 1 file 백호 2009.02.21 2769
776 전투 [신기술 체험]액션배틀1탄 6 file 백호 2009.02.22 2766
775 전투 전투배경확장 스크립트 3 file 아미상 2013.09.15 2763
774 전투 KGC_BonusGauge (보너스게이지) 3 file 백호 2009.02.22 2762
773 메뉴 Etude87_Horror_Menu_XP ver.1.1 15 file 습작 2012.08.04 2759
772 이동 및 탈것 이동속도[빈도]를 높히거나 낮추게할수있는 스크립트 5 - 하늘 - 2009.08.06 2759
771 기타 [KGC]HP&SP게이지 색다른것(글씨와 게이지가 안겹침) 10 file 백호 2009.02.21 2732
770 타이틀/게임오버 타이틀 화면전 로고를 띄우는 스크립트 9 백호 2009.02.21 2728
769 기타 appletree님 요청) 화면 명암 주기 3 file 뮤바보 2013.01.31 2724
768 장비 심플액션 수정본(장비드롭, 데미지표시) 원본:비밀소년 수정:kcss 10 file 백호 2009.02.21 2721
» 타이틀/게임오버 타이틀에 글씨 박기 . 11 WMN 2008.03.17 2721
766 메세지 분풀해 표시 스크립트 9 WMN 2008.03.17 2711
765 맵/타일 Map Extension - 맵상의 에어리어 설정, 탈것, 맵 루프 등 from RGSS Wiki 3 file 백호 2009.02.22 2708
764 메뉴 CoaMenuVer0.1 10 file 코아 코스튬 2010.09.25 2701
763 전투 간단 액알 스크립티!(2번째) 2 백호 2009.02.21 2696
762 메뉴 KGC스크립트모음 12 file 키라링 2009.01.18 2687
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 52 Next
/ 52