제한변경

말풍선 그림 바꾸기

by 허걱 posted Mar 05, 2010
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form

사용법은 이벤트->스크립트 에서
$game_system.balloon = "파일이름"
써주면 다음부터 적용되는 말풍선 그림은 해당 파일로 대체됩니다.  (기본 : "Balloo")

파일은 System 폴더에 넣어서 사용.

 

아래 스크립트를 복사->붙여넣기 해서 사용하면 됩니다.

 

Sprite_Character 클래스 부분을 수정하고

Game_System 클래스 부분의 두줄 추가해서 사용해도 됩니다.

 

 

 

 

 

 

class Sprite_Character < Sprite_Base
  def start_balloon
    dispose_balloon
    @balloon_duration = 8 * 8 + BALLOON_WAIT
    @balloon_sprite = ::Sprite.new(viewport)
    @balloon_sprite.bitmap = Cache.system($game_system.balloon)  # 수정
    @balloon_sprite.ox = 16
    @balloon_sprite.oy = 32
    update_balloon
  end
end

class Game_System < Game_System
  attr_accessor :balloon  # 추가
  def initialize
    super
    @balloon = "Balloon"  #  추가
  end
end

TAG •


Fatal error: Cannot access property sessionController::$lifetime in /web/old/xe/modules/session/session.controller.php on line 45