赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 6609 |
最后登录 | 2017-9-17 |
在线时间 | 91 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 91 小时
- 注册时间
- 2013-9-20
- 帖子
- 18
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 天空椰枣 于 2016-6-13 11:05 编辑
如图,楼主手残,什么脚本都不会写,解决一堆情况后只能做到以上程度。【图像以后会换
那么问题来了,背景该怎么添加啊,黑黑的一块完全不符合游戏主题啊囧orz
求大神解答,超级感谢
附上脚本情况:
#============================================================================= # 标题画面加强 by 子弹君 #============================================================================= # 说明: # 加强默认标题画面的各种功能 #============================================================================= $BombScript ||= {};$BombScript["标题画面加强"] = "标题画面加强20140921" #============================================================================== # 设定部分 #============================================================================== module BOMB module TITLE1 FONT = "微软雅黑" # 设置标题选项字体 SIZE = 20 # 设置字体大小 BOLD = false # 设置选项字是否加粗 SHADOW = true # 设置选项字是否有阴影 ITALIC = false # 设置选项字是否斜体 COLOR = Color.new(255,255,255,255) # 设置选项字的颜色 OPACITY = 0 # 设置选项窗口不透明度 WIDTH = 160 # 设置窗口的宽度 X = 190 # 设置窗口的X坐标 Y = 280 # 设置窗口的Y坐标 TITLE = "Title" # 设置标题选项的背景图,若要显示一张背景请将不透明度调为0 # 取为空值则不显示图片。 FONT2 = "微软雅黑" # 设置标题大字的字体 SIZE2 = 48 # 设置标题大字的字号大小 BOLD2 = false # 设置标题大字是否加粗 SHADOW2 = true # 设置标题大字是否有阴影 ITALIC2 = false # 设置标题大字是否斜体 COLOR2 = Color.new(255,255,255,255) # 设置标题大字的颜色 end end class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # ● 初始化对象 #-------------------------------------------------------------------------- alias bomb20140921_initialize initialize def initialize bomb20140921_initialize self.opacity = BOMB::TITLE1::OPACITY end #-------------------------------------------------------------------------- # ● 获取窗口的宽度 #-------------------------------------------------------------------------- def window_width return BOMB::TITLE1::WIDTH end #-------------------------------------------------------------------------- # ● 更新窗口的位置 #-------------------------------------------------------------------------- def update_placement self.x = self.x = BOMB::TITLE1::X self.y = self.y = BOMB::TITLE1::Y end end class Window_TitleCommand #-------------------------------------------------------------------------- # ● 绘制字体 #-------------------------------------------------------------------------- alias bomb20140921_contents create_contents def create_contents bomb20140921_contents self.contents.font.name = BOMB::TITLE1::FONT self.contents.font.size = BOMB::TITLE1::SIZE self.contents.font.bold = BOMB::TITLE1::BOLD self.contents.font.shadow = BOMB::TITLE1::SHADOW self.contents.font.italic = BOMB::TITLE1::ITALIC end def normal_color self.contents.font.color = BOMB::TITLE1::COLOR end end class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # ● 开始处理 #-------------------------------------------------------------------------- def start super SceneManager.clear Graphics.freeze create_background create_foreground create_command_window play_title_music end #-------------------------------------------------------------------------- # ● 获取渐变速度 #-------------------------------------------------------------------------- def transition_speed return 20 end #-------------------------------------------------------------------------- # ● 结束处理 #-------------------------------------------------------------------------- def terminate super SceneManager.snapshot_for_background dispose_background dispose_foreground end end
#=============================================================================
# 标题画面加强 by 子弹君
#=============================================================================
# 说明:
# 加强默认标题画面的各种功能
#=============================================================================
$BombScript ||= {};$BombScript["标题画面加强"] = "标题画面加强20140921"
#==============================================================================
# 设定部分
#==============================================================================
module BOMB
module TITLE1
FONT = "微软雅黑"
# 设置标题选项字体
SIZE = 20
# 设置字体大小
BOLD = false
# 设置选项字是否加粗
SHADOW = true
# 设置选项字是否有阴影
ITALIC = false
# 设置选项字是否斜体
COLOR = Color.new(255,255,255,255)
# 设置选项字的颜色
OPACITY = 0
# 设置选项窗口不透明度
WIDTH = 160
# 设置窗口的宽度
X = 190
# 设置窗口的X坐标
Y = 280
# 设置窗口的Y坐标
TITLE = "Title"
# 设置标题选项的背景图,若要显示一张背景请将不透明度调为0
# 取为空值则不显示图片。
FONT2 = "微软雅黑"
# 设置标题大字的字体
SIZE2 = 48
# 设置标题大字的字号大小
BOLD2 = false
# 设置标题大字是否加粗
SHADOW2 = true
# 设置标题大字是否有阴影
ITALIC2 = false
# 设置标题大字是否斜体
COLOR2 = Color.new(255,255,255,255)
# 设置标题大字的颜色
end
end
class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
alias bomb20140921_initialize initialize
def initialize
bomb20140921_initialize
self.opacity = BOMB::TITLE1::OPACITY
end
#--------------------------------------------------------------------------
# ● 获取窗口的宽度
#--------------------------------------------------------------------------
def window_width
return BOMB::TITLE1::WIDTH
end
#--------------------------------------------------------------------------
# ● 更新窗口的位置
#--------------------------------------------------------------------------
def update_placement
self.x = self.x = BOMB::TITLE1::X
self.y = self.y = BOMB::TITLE1::Y
end
end
class Window_TitleCommand
#--------------------------------------------------------------------------
# ● 绘制字体
#--------------------------------------------------------------------------
alias bomb20140921_contents create_contents
def create_contents
bomb20140921_contents
self.contents.font.name = BOMB::TITLE1::FONT
self.contents.font.size = BOMB::TITLE1::SIZE
self.contents.font.bold = BOMB::TITLE1::BOLD
self.contents.font.shadow = BOMB::TITLE1::SHADOW
self.contents.font.italic = BOMB::TITLE1::ITALIC
end
def normal_color
self.contents.font.color = BOMB::TITLE1::COLOR
end
end
class Scene_Title < Scene_Base
#--------------------------------------------------------------------------
# ● 开始处理
#--------------------------------------------------------------------------
def start
super
SceneManager.clear
Graphics.freeze
create_background
create_foreground
create_command_window
play_title_music
end
#--------------------------------------------------------------------------
# ● 获取渐变速度
#--------------------------------------------------------------------------
def transition_speed
return 20
end
#--------------------------------------------------------------------------
# ● 结束处理
#--------------------------------------------------------------------------
def terminate
super
SceneManager.snapshot_for_background
dispose_background
dispose_foreground
end
end
这个是标题加强功能,来自子弹君大大,被我修改了一下【因为冲突
然后是路路大大的位图消逝效果,也被我删减了一下【冲突
#encoding:utf-8 #============================================================================== # ■ Scene_Title #------------------------------------------------------------------------------ # 标题画面 #============================================================================== class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # ● 生成背景 #-------------------------------------------------------------------------- def create_background @sprite1 = Sprite.new @sprite1.x = 130 @sprite1.y = 88 @sprite1.bitmap = Bitmap.new("t") @sprite2 = Sprite.new @sprite2.bitmap = Cache.title2($data_system.title2_name) center_sprite(@sprite2) #-------------------------------------------------------------------------- #*基本示例 一行即生效 #-------------------------------------------------------------------------- Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,150,4,0.5,:RU,:C,false) #-------------------------------------------------------------------------- end #-------------------------------------------------------------------------- # ● 绘制游戏标题 #-------------------------------------------------------------------------- def draw_game_title @a = rand(2) end #-------------------------------------------------------------------------- #*循环示例 #-------------------------------------------------------------------------- @@t = 0 @@e = [:LU,:RU,:LD,:RD] def update super @@t+=1 if @@t == 15 @@t = 0 if @a == 0 #四周扩散 且关闭清除效果 Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,8,4,0.5,@@e[rand(4)],:C,false) else #默认 Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,8,4) end end end #-------------------------------------------------------------------------- # ● 指令“开始游戏” #-------------------------------------------------------------------------- def command_new_game #-------------------------------------------------------------------------- #*按键示例 #-------------------------------------------------------------------------- Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S) @sprite1.opacity = 0 close_command_window 180.times {Graphics.update} #-------------------------------------------------------------------------- DataManager.setup_new_game close_command_window fadeout_all $game_map.autoplay SceneManager.goto(Scene_Map) end #-------------------------------------------------------------------------- # ● 指令“继续游戏” #-------------------------------------------------------------------------- def command_continue #-------------------------------------------------------------------------- #*按键示例 #-------------------------------------------------------------------------- Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S) @sprite1.opacity = 0 close_command_window 180.times {Graphics.update} #-------------------------------------------------------------------------- close_command_window SceneManager.call(Scene_Load) end #-------------------------------------------------------------------------- # ● 指令“退出游戏” #-------------------------------------------------------------------------- def command_shutdown #-------------------------------------------------------------------------- #*按键示例 #-------------------------------------------------------------------------- Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S) @sprite1.opacity = 0 close_command_window 180.times {Graphics.update} #-------------------------------------------------------------------------- close_command_window fadeout_all SceneManager.exit end #-------------------------------------------------------------------------- # ● 播放标题画面音乐 #-------------------------------------------------------------------------- def play_title_music $data_system.title_bgm.play RPG::BGS.stop RPG::ME.stop end end
#encoding:utf-8
#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
# 标题画面
#==============================================================================
class Scene_Title < Scene_Base
#--------------------------------------------------------------------------
# ● 生成背景
#--------------------------------------------------------------------------
def create_background
@sprite1 = Sprite.new
@sprite1.x = 130
@sprite1.y = 88
@sprite1.bitmap = Bitmap.new("t")
@sprite2 = Sprite.new
@sprite2.bitmap = Cache.title2($data_system.title2_name)
center_sprite(@sprite2)
#--------------------------------------------------------------------------
#*基本示例 一行即生效
#--------------------------------------------------------------------------
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,150,4,0.5,:RU,:C,false)
#--------------------------------------------------------------------------
end
#--------------------------------------------------------------------------
# ● 绘制游戏标题
#--------------------------------------------------------------------------
def draw_game_title
@a = rand(2)
end
#--------------------------------------------------------------------------
#*循环示例
#--------------------------------------------------------------------------
@@t = 0
@@e = [:LU,:RU,:LD,:RD]
def update
super
@@t+=1
if @@t == 15
@@t = 0
if @a == 0
#四周扩散 且关闭清除效果
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,8,4,0.5,@@e[rand(4)],:C,false)
else
#默认
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,8,4)
end
end
end
#--------------------------------------------------------------------------
# ● 指令“开始游戏”
#--------------------------------------------------------------------------
def command_new_game
#--------------------------------------------------------------------------
#*按键示例
#--------------------------------------------------------------------------
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S)
@sprite1.opacity = 0
close_command_window
180.times {Graphics.update}
#--------------------------------------------------------------------------
DataManager.setup_new_game
close_command_window
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
#--------------------------------------------------------------------------
# ● 指令“继续游戏”
#--------------------------------------------------------------------------
def command_continue
#--------------------------------------------------------------------------
#*按键示例
#--------------------------------------------------------------------------
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S)
@sprite1.opacity = 0
close_command_window
180.times {Graphics.update}
#--------------------------------------------------------------------------
close_command_window
SceneManager.call(Scene_Load)
end
#--------------------------------------------------------------------------
# ● 指令“退出游戏”
#--------------------------------------------------------------------------
def command_shutdown
#--------------------------------------------------------------------------
#*按键示例
#--------------------------------------------------------------------------
Unravel_Bitmap.new(130,88,@sprite1.bitmap,0,0,279,125,-1,4,0.5,:LRUD,:S)
@sprite1.opacity = 0
close_command_window
180.times {Graphics.update}
#--------------------------------------------------------------------------
close_command_window
fadeout_all
SceneManager.exit
end
#--------------------------------------------------------------------------
# ● 播放标题画面音乐
#--------------------------------------------------------------------------
def play_title_music
$data_system.title_bgm.play
RPG::BGS.stop
RPG::ME.stop
end
end
这个是scene_Title的脚本,另外的Unravel_Bitmap就不放了
总之求解救,非常感谢
|
|