1000经验求大触帮忙路过的大神帮帮
SceneManager.(Scene_FF)
class Scene_FF def main #加载窗口 @bl = Window_Base.new(0, 0, 640, 480) @bl.contents = Bitmap.new(@bl.width - 32, @bl.height - 32) if $game_switches[202]==true @bl.contents.font.color = Color.new(0, 255, 0, 255) @bl.contents.draw_text(0, 0, 128, 32,"剑越卄" ) case $game_variables[52] when 0 @bl.contents.draw_text(88, 0, 126, 32,"一面之缘" ) when 10 @bl.contents.draw_text(88, 0, 126, 32,"颇有好感" ) when 20 @bl.contents.draw_text(88, 0, 126, 32,"惺惺相惜" ) when 30 @bl.contents.draw_text(88, 0, 126, 32,"爱慕倾心" ) when 40 @bl.contents.draw_text(88, 0, 126, 32,"生死与共" ) end end if $game_switches[203]==true @bl.contents.font.color = Color.new(0, 255, 0, 255) @bl.contents.draw_text(0, 32, 128, 32,"幻羽" ) case $game_variables[53] when -10 @bl.contents.draw_text(88, 32, 126, 32,"不胜厌恶" ) when 0 @bl.contents.draw_text(88, 32, 126, 32,"一面之缘" ) when 10 @bl.contents.draw_text(88, 32, 126, 32,"颇有好感" ) when 20 @bl.contents.draw_text(88, 32, 126, 32,"惺惺相惜" ) when 30 @bl.contents.draw_text(88, 32, 126, 32,"爱慕倾心" ) when 40 @bl.contents.draw_text(88, 32, 126, 32,"生死与共" ) end end if $game_switches[202]==false @bl.contents.draw_text(250, 200, 126, 32,"暂无人物关系" ) end #四个子隔开Y+60 # 执行过渡 Graphics.transition # 主循环 loop do # 刷新游戏画面 Graphics.update # 刷新输入信息 Input.update # 刷新画面 update # 如果切换画面就中断循环 if $scene != self break end end # 准备过渡 Graphics.freeze #释放 @bl.dispose end def update @bl.update #当B按下时 if Input.trigger?(Input::B) $scene = Scene_Map.new end end end
360截图20170619144724136.jpg (38.85 KB, 下载次数: 16)
能正常运行 就是不能回到游戏
class Scene_FF < Scene_Base def start super c_ff end def c_ff @bl = W_FF.new @bl.set_handler(:cancel, method(:return_scene)) end end class W_FF < Window_Selectable def initialize super(0,0,544,416) refresh activate end def refresh contents.clear if $game_switches[202]==true contents.font.color = Color.new(0, 255, 0, 255) draw_text(0, 0, 128, 32,"剑越卄" ) case $game_variables[52] when 0 draw_text(88, 0, 126, 32,"一面之缘" ) when 10 draw_text(88, 0, 126, 32,"颇有好感" ) when 20 draw_text(88, 0, 126, 32,"惺惺相惜" ) when 30 draw_text(88, 0, 126, 32,"爱慕倾心" ) when 40 draw_text(88, 0, 126, 32,"生死与共" ) end end if $game_switches[203]==true contents.font.color = Color.new(0, 255, 0, 255) draw_text(0, 32, 128, 32,"幻羽" ) case $game_variables[53] when -10 draw_text(88, 32, 126, 32,"不胜厌恶" ) when 0 draw_text(88, 32, 126, 32,"一面之缘" ) when 10 draw_text(88, 32, 126, 32,"颇有好感" ) when 20 draw_text(88, 32, 126, 32,"惺惺相惜" ) when 30 draw_text(88, 32, 126, 32,"爱慕倾心" ) when 40 draw_text(88, 32, 126, 32,"生死与共" ) end end if $game_switches[202]==false draw_text(250, 200, 126, 32,"暂无人物关系" ) end end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |