赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 1835 |
最后登录 | 2020-5-5 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 0 小时
- 注册时间
- 2008-2-21
- 帖子
- 83
|
有办法啦o(∩_∩)o...哈哈
可以用这个脚本
module MOG_VX02
#Definição da switch que ativa o efeito Wave.
BB_WAVE_SWITCH = 0
#Definição da switch que ativa a versão VX.
BB_VXEDITION_SWITCH = 0
end
#-------------------------------------------------
$mogscript = {} if $mogscript == nil
$mogscript["battleback_xp"] = true
#-------------------------------------------------
###############
# Game_System #
###############
class Game_System
attr_accessor :bb
alias mog_vx02_initialize initialize
def initialize
mog_vx02_initialize
@bb = ""
end
end
###############
# Module Cache #
###############
module Cache
def self.battleback(filename)
load_bitmap("Graphics/battlebacks/", filename)
end
end
#################
# Spriteset_Battle #
#################
class Spriteset_Battle
include MOG_VX02
def create_battleback
@battleback_sprite = Sprite.new(@viewport1)
source = Cache.battleback($game_system.bb.to_s) rescue empty
if $game_switches[BB_WAVE_SWITCH] == true
bitmap = Bitmap.new(640, 480)
else
bitmap = Bitmap.new(544, 288)
end
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap.radial_blur(90, 12) if $game_switches[BB_VXEDITION_SWITCH] == true
@battleback_sprite.bitmap = bitmap
wave_on if $game_switches[BB_WAVE_SWITCH] == true
end
def wave_on
@battleback_sprite.ox = 320
@battleback_sprite.oy = 240
@battleback_sprite.x = 272
@battleback_sprite.y = 176
@battleback_sprite.wave_amp = 8
@battleback_sprite.wave_length = 240
@battleback_sprite.wave_speed = 120
end
def empty
@battleback_sprite.bitmap = $game_temp.background_bitmap
end
def create_battlefloor
if $game_switches[BB_VXEDITION_SWITCH] == true
@battlefloor_sprite = Sprite.new(@viewport1)
@battlefloor_sprite.bitmap = Cache.system("BattleFloor")
@battlefloor_sprite.x = 0
@battlefloor_sprite.y = 192
@battlefloor_sprite.z = 1
@battlefloor_sprite.opacity = 128
else
@battlefloor_sprite = Sprite.new(@viewport1)
end
end
end
在事件中可以调取战斗背景。
如此,在大地图上设置调取战斗背景的事件,然后狂ctrl cv…… |
|