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
961 전투 XAS Hero Edition v3.82 19 아방스 2010.12.27 4346
960 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4314
959 키입력 한글입력기 6 백호 2009.02.22 4299
958 기타 쓸만한스크립트61개포함 28 file 궭크이 2012.01.09 4297
957 온라인 온라인스크립트 실행방법 13 file 백호 2009.02.22 4275
956 HUD 캐릭터 아래 SP,HP표시해주는 스크립트 33 file 김!제스! 2010.08.04 4270
955 기타 XP 각종 스크립트입니다. 36 file 쿠도신이치 2009.04.26 4266
954 액알입니다.정말 확신함 12 dkqkfsoatp 2007.12.13 4266
953 타이틀/게임오버 [펌]색다른 게임오버 스크립트 14 file 또라에몽 2010.05.09 4265
952 이동 및 탈것 아하! 그렇구나의 3D 신기술 체험 3 14 아하!잘봤어요. 2010.02.28 4258
951 기타 말풍선 스크립트. 62 file 『동그라미』♥ 2010.02.04 4254
950 전투 사이드뷰 전투(보행그래픽) 15 file 백호 2009.02.21 4244
949 기타 [게이지바]게이지바 스크립트 2.5 (실용적?) 17 file 코아 코스튬 2010.12.05 4219
948 스킬 스킬샵 스크립트 16 file 독도2005 2009.08.24 4219
947 메인화면에 별똥별 효과 6 file 아방스 2007.11.09 4217
946 메뉴 메뉴를 바꾸는 스크립트 14 №1 2012.08.04 4208
945 이름입력 한글이름 입력기 스크립트 14 백호 2009.02.22 4205
944 HUD 맵 이름 표시와 미니맵을 같이하자 8 file 뮤리온。 2011.10.08 4193
943 미니맵 [헬악이님 제보] 단축키 미니맵 만들기!!| 13 file 아방스 2007.11.09 4191
942 전투 ATB시스템 입니다. [스샷 첨부] 17 백호 2009.02.22 4182
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52