设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 647|回复: 1
打印 上一主题 下一主题

[已经过期] 【已解决】Notification.post("51号开关已经打开") 直接显示一...

[复制链接]

Lv4.逐梦者

梦石
0
星屑
6286
在线时间
1103 小时
注册时间
2015-8-15
帖子
658
跳转到指定楼层
1
发表于 2023-6-2 16:06:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 金芒芒 于 2023-6-5 12:59 编辑

Notification.post("51号开关已经打开")改成 直接显示一张图片

$game_screen.pictures[number].show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
当按下Tab键图片就消失(if Kboard.keyboard($R_Key_TAB) )
$game_screen.pictures[1].erase


RUBY 代码复制
  1. def display_battle_end_message#显示战斗结束消息
  2.     if @efs_after_battle_level == 10
  3.     $game_switches[51] = true #true  
  4.     Notification.post("51号开关已经打开")
  5.     end  
  6.     if @efs_after_battle_level == 9
  7.     $game_switches[52] = true
  8.     Notification.post("52号开关已经打开")
  9.     end   
  10.     if @efs_after_battle_level == 8
  11.     $game_switches[53] = true  
  12.     Notification.post("53号开关已经打开")
  13.     end
  14.     if @efs_after_battle_level == 7
  15.     $game_switches[54] = true  
  16.     Notification.post("54号开关已经打开")
  17.     end
  18.     if @efs_after_battle_level == 6
  19.     $game_switches[55] = true  
  20.     Notification.post("55号开关已经打开")
  21.     end
  22.       if @efs_after_battle_level == 5
  23.     $game_switches[56] = true  
  24.     Notification.post("56号开关已经打开")
  25.     end
  26.       if @efs_after_battle_level == 4
  27.     $game_switches[57] = true  
  28.     Notification.post("57号开关已经打开")
  29.     end
  30.       if @efs_after_battle_level == 3
  31.     $game_switches[58] = true  
  32.     Notification.post("58号开关已经打开")
  33.     end  
  34.      if @efs_after_battle_level == 2
  35.     $game_switches[59] = true  
  36.     Notification.post("59号开关已经打开")
  37.     end
  38.     if @efs_after_battle_level == 1
  39.     $game_switches[60] = true  
  40.     Notification.post("60号开关已经打开")
  41.     end
  42.     if @efs_after_battle_level == 0
  43.     $game_switches[61] = true  
  44.     Notification.post("61号开关已经打开")
  45.     end
  46.  
  47.     if @efs_victory
  48.       Notification.post("战斗胜利... 按下Tab键返回")
  49.       #$game_system.me_play($game_system.battle_end_me)
  50.     elsif @efs_all_dead
  51.       Notification.post("战斗失败... 按下Tab键返回")
  52.       #$game_system.me_play($data_system.gameover_me)
  53.     else
  54.       Notification.post("全军撤退... 按下Tab键返回")
  55.        #$game_system.se_play($game_system.escape_se)
  56.     end  
  57.   end

Lv4.逐梦者

梦石
0
星屑
6286
在线时间
1103 小时
注册时间
2015-8-15
帖子
658
2
 楼主| 发表于 2023-6-5 12:57:32 | 只看该作者
    if @efs_after_battle_level == 8
    $game_switches[53] = true  
    Notification.post("53号开关已经打开")
    $game_screen.pictures[1].show("ot", 0, -320, 160, 100, 100, 255, 0)
    end
    $game_screen.pictures[1].move(60, 0, 320, 160, 100, 100, 255, 0)
    for i in 1..60
      Graphics.update
      $game_screen.update
      update_event
    end
    if Kboard.keyboard($R_Key_TAB)
    $game_screen.pictures[1].erase
  end
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-28 01:59

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表