加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
#-------------------------------------------------------------------------- # ● 战斗开始 #-------------------------------------------------------------------------- def self.battle_start $game_system.battle_count += 1 $game_party.on_battle_start $game_troop.on_battle_start $game_troop.enemy_names.each do |name| $game_message.add("战斗开始!")#(sprintf(Vocab::Emerge, name)) end if @preemptive $game_message.add(sprintf(Vocab::Preemptive, $game_party.name)) elsif @surprise $game_message.add(sprintf(Vocab::Surprise, $game_party.name)) end wait_for_message end
#--------------------------------------------------------------------------
# ● 战斗开始
#--------------------------------------------------------------------------
def self.battle_start
$game_system.battle_count += 1
$game_party.on_battle_start
$game_troop.on_battle_start
$game_troop.enemy_names.each do |name|
$game_message.add("战斗开始!")#(sprintf(Vocab::Emerge, name))
end
if @preemptive
$game_message.add(sprintf(Vocab::Preemptive, $game_party.name))
elsif @surprise
$game_message.add(sprintf(Vocab::Surprise, $game_party.name))
end
wait_for_message
end
战斗开始的信息想改变位置要怎么做?比如我想把对话框居中。
[line]搜索了半天 position 存在这个东西 但是不知道怎么用
$game_message.position=@paras[3]搜到了这个东西[/line]
要是把这个开始信息替换成一张图片是不是直接
create_bg_picture
def create_bg_picture
@bg_picture=sprite.new
@ba_picture_sprite.bitmap=Cache.System("bg_picture")
end
就可以了呢?
#-------------------------------------------------------------------------- # ● 显示获得的金钱 #-------------------------------------------------------------------------- def self.gain_gold if $game_troop.gold_total > 0 text = sprintf(Vocab::ObtainGold, $game_troop.gold_total) $game_message.add('\.' + text) $game_party.gain_gold($game_troop.gold_total) end wait_for_message end
#--------------------------------------------------------------------------
# ● 显示获得的金钱
#--------------------------------------------------------------------------
def self.gain_gold
if $game_troop.gold_total > 0
text = sprintf(Vocab::ObtainGold, $game_troop.gold_total)
$game_message.add('\.' + text)
$game_party.gain_gold($game_troop.gold_total)
end
wait_for_message
end
结束信息这里 还是message改变位置的问题,要是想整合这些信息用弹出的居中小方块显示要怎么做?
|