Advanced Classroom
2014.06.19 08:15

배틀창 이름 체력 레벨 좌표 변경하기

Views 1208 Votes 0 Comment 1
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

다 아실거라 생각합니다만......

그래도 모르실 분을 위해......

#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  배틀 화면에서 파티 멤버의 스테이터스를 표시하는 윈도우입니다.
#==============================================================================

class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  # ● 공개 인스턴스 변수
  #--------------------------------------------------------------------------
  attr_accessor :battler                  # 버틀러
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize()
    super(0, 320, 640, 160)
    self.contents = Bitmap.new(width - 256, height - 32)
    @level_up_flags = [false, false, false, false]
    refresh
  end
  #-----------------------------------------------------------------
  # ● 레벨업 플래그의 설정
  #     actor_index : 액터 인덱스
  #--------------------------------------------------------------------------
  def level_up(actor_index)
    @level_up_flags[actor_index] = true
  end
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_x = i * 160 + 4
      draw_actor_name(actor, actor_x + 250, 0)   << 이 부분에서 받아온 actor의 x값에 +@를 해주시면 됩니다.
      draw_actor_hp(actor, actor_x + 220, 32, 120)
      draw_actor_sp(actor, actor_x + 220, 64, 120
)
     self.contents.draw_text(actor_x + 300, 96, 120, 32, "KOSMOS")
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x + 180, 96)
      end
    end
  end
  #--------------------------------------------------------------------------
  # ● 프레임 갱신
  #--------------------------------------------------------------------------
  def update
    super
    # 메인 국면 때는 불투명도를 약간 내린다
    if $game_temp.battle_main_phase
      self.contents_opacity -= 4 if self.contents_opacity > 191
    else
      self.contents_opacity += 4 if self.contents_opacity < 255
    end
  end
end

 

배틀스테이터스 상태창 하단에 제 나름대로 메세지를 넣어봤습니다만, MP색 바뀌면 색깔이 같이 바뀌는건 많이 슬프죠......

위에 올려진 좌표는 전부 중앙에 위치되어있습니다.

나름 깔끔하다고 생각합니다.

?

List of Articles
No. Category Subject Author Date Views Votes
Notice Beginner Classroom 게임제작강좌 A-Z 색인 (2016.1.24 ver) 2 file 천무 2016.01.12 8178 1
78 Advanced Classroom [RMMV] 크로노 엔진(Chrono Engine) 플러그인 사용법 1 러닝은빛 2017.07.16 4051 2
77 Advanced Classroom [MV플러그인] Armor Scaling 강의 1 file 백난화백 2016.02.13 3886 2
76 Advanced Classroom [MV플러그인] Action Sequence 강의 5 file 백난화백 2016.02.12 5932 1
75 Advanced Classroom [동영상] 스크립트 나도좀 잘해보자 -1- 1 file 천무 2016.02.04 1911 1
74 Advanced Classroom PIXI Filter 총정리 (PIXI 2.2.9) 4 file 러닝은빛 2016.01.18 18968 3
73 Advanced Classroom [RGSS2 강좌] 기초편 2. 변수와 상수 천무 2016.01.10 985 0
72 Advanced Classroom [RGSS2 강좌] 기초편 1. 소개 file 천무 2016.01.10 1233 0
71 Advanced Classroom Rpg Maker MV 함수 리스트(공식포럼) 2 plam 2016.01.10 1579 1
70 Advanced Classroom 타이틀에 동영상을 넣는 플러그인 사용법 5 file 러닝은빛 2016.01.08 2918 1
69 Advanced Classroom RPG Maker MV 메모리 누수 문제 해결법 6 러닝은빛 2016.01.07 5069 1
68 Advanced Classroom XP to MV 컨버터 사용법 3 file 러닝은빛 2015.12.28 3111 0
67 Advanced Classroom 기본 게임 폰트를 다른 폰트로 바꾸기 5 file 러닝은빛 2015.12.21 7830 0
66 Advanced Classroom 처음부터 전체화면으로 시작하기 3 file 러닝은빛 2015.12.21 4642 0
65 Advanced Classroom [RPG MV] 타이틀 메뉴 일부 없애기 9 박야옹 2015.12.20 4081 1
64 Advanced Classroom [RPGMV Plugin 영상] 무작정 해보기 "Gameus' Quest System" 7 천무 2015.12.20 2053 0
63 Advanced Classroom [RPGMV Plugin 영상] 무작정 해보기 "심플ATB" 2 천무 2015.12.20 1373 0
62 Advanced Classroom VX Ace to MV 컨버터 사용법 ( .rvdata2 → .json ) 10 file 러닝은빛 2015.12.14 7681 0
61 Advanced Classroom [RPGMV Plugin 영상] 한국어 조사처리, 해상도변경 플러그인!! 2 천무 2015.12.12 1644 0
60 Advanced Classroom [소공지] 플러그인 무작정 해드린다 진행해봅니다. 2 천무 2015.12.09 846 0
59 Advanced Classroom [RPGMV Plugin 영상] 한글이름 입력, 전투속도증가 플러그인!! 4 천무 2015.12.09 2194 0
Board Pagination Prev 1 2 3 4 Next
/ 4


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)