不对!这是因为读取了旧的存档,开新档就行了。 |
我也不是很懂代码 感觉他指的是 def update super if $game_party.medal_info_count > 0 self.contents_opacity += 16 $game_party.medal_info_count -= 1 $game_party.delete_new_medal if $game_party.medal_info_count == 0 else self.contents_opacity -= 16 if self.contents_opacity == 0 open unless $game_party.new_medals.empty? end end $game_party.medal_info_opacity = self.contents_opacity end 这段代码当中 self.contents_opacity -= 16 if self.contents_opacity == 0 2次相等后 就变成了整数了 你试试把 $game_party.medal_info_opacity = self.contents_opacity 改成 $game_party.medal_info_opacity =nil |
不能转换 nil 为整数。 应该是 $game_party.medal_info_opacity 的值为 nil 了 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-16 14:32
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.