Project1
标题:
如何在进入标题之前显示动画?
[打印本页]
作者:
987190769
时间:
2011-11-28 17:05
提示:
作者被禁止或删除 内容自动屏蔽
作者:
步兵中尉
时间:
2011-11-28 17:21
使用
跳过开始画面
的脚本,新建一个地图完成动画显示,然后在移动到另一张地图上建立新标题的图片显示就可以了。附一个
跳过开始画面
的脚本。
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
class Scene_Title
#==============================================================================
# 脚本作者:朱仔メ龍 QQ:251724722
# 脚本转载请保留以上信息
#==============================================================================
def main
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_system = Game_System.new
Graphics.frame_count = 0
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
$game_party.setup_starting_members
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
$game_map.autoplay
$game_map.update
$scene = Scene_Map.new
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
复制代码
作者:
月下黄昏
时间:
2011-11-30 14:10
用这个不过要先创立一个文件命名为LOGO的图形文件放在Pictures文件夹下面
然后将Main脚本段里的原先一句$scene = Scene_Title.new修改为$scene = Scene_Logo.new
最后在新建这样的一段脚本就可以呢
#==============================================================================
# ■ Scene_Logo
#------------------------------------------------------------------------------
# 处理片头的类。
#==============================================================================
class Scene_Logo
#--------------------------------------------------------------------------
# ● 主处理
#--------------------------------------------------------------------------
def main
# 如果您不想在每次测试游戏游戏的时候都显示LOGO,请加入以下注释语句
# if $DEBUG
# $scene = Scene_Title.new
# return
# end
# 生成LOGO图形
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.picture("logo")
@sprite.x = 160
@sprite.y = 120
# 显示计时器
@show_time=60
# 执行过渡
Graphics.transition(20)
# 主循环
while @show_time>0 do
# 刷新游戏画面
Graphics.update
# 显示计时器减一
@show_time -= 1
end
# 准备过渡
Graphics.freeze
# 释放标题图形
@sprite.bitmap.dispose
@sprite.dispose
# 执行过渡,过渡到全黑
Graphics.transition(20)
# 准备过渡,用于准备过渡到标题画面
Graphics.freeze
# 进入标题画面
$scene = Scene_Title.new
end
end
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1