| 赞 | 14 |
| VIP | |
| 好人卡 | |
| 积分 | 25 |
| 经验 | |
| 最后登录 | 2024-3-12 |
| 在线时间 | 912 小时 |
- 梦石
- 0
- 星屑
- 2457
- 在线时间
- 912 小时
- 注册时间
- 2014-10-14
- 回帖
- 1155

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 j296196585 于 2017-6-19 14:54 编辑
[pre lang="ruby"]1000经验求大触帮忙路过的大神帮帮[/pre]
[pre lang="ruby"]SceneManager.(Scene_FF)[/pre][pre lang="ruby"]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
[/pre] |
-
能正常运行 就是不能回到游戏
|