Project1
标题:
关于战斗背景,我找的脚本只能用一张图...
[打印本页]
作者:
646563892
时间:
2011-5-21 09:10
标题:
关于战斗背景,我找的脚本只能用一张图...
我是脚本盲
#------------------------------------------------------------------------------
B_PATH = "Graphics/Battlebacks/"
#------------------------------------------------------------------------------
module Cache
def self.battleback(filename, hue)
load_bitmap(B_PATH, filename, hue)
end
end
#------------------------------------------------------------------------------
class Spriteset_Battle
def create_battleback
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = Cache.battleback("Title1", 0)
end
end
请问怎么加第二张图而且战斗背景怎么设置在某个特定地图里才有 dsu_plus_rewardpost_czw
作者:
夕阳武士
时间:
2011-5-21 14:15
回复
646563892
的帖子
class Spriteset_Battle
def create_battleback
case $game_variables[5] #战斗远景
when 1
bitmap = Bitmap.new("Graphics/Battlebacks/Title1")
when 2
bitmap = Bitmap.new("Graphics/Battlebacks/Battlebacks")
when 3
bitmap = Bitmap.new("Graphics/Parallaxes/Castle3")
else
source = $game_temp.background_bitmap
bitmap = Bitmap.new(640, 480)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
end
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = bitmap
@battleback_sprite.tone = Tone.new(0,0,0,0)
@battleback_sprite.x = 0
@battleback_sprite.y = 0
end
end
复制代码
用5号变量控制
作者:
cpu250
时间:
2011-6-19 06:43
5号变量控制怎么弄?
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1