Project1

标题: 求助:怎么会提示未定义方法? [打印本页]

作者: timiesea    时间: 2013-12-24 20:30
标题: 求助:怎么会提示未定义方法?
本帖最后由 timiesea 于 2013-12-24 20:37 编辑

在默认脚本中,Game_Player类的第92有一个方法,如下所示:
RUBY 代码复制
  1. def map_passable?(x, y, d)
  2.     case @vehicle_type
  3.     when :boat
  4.       $game_map.boat_passable?(x, y)
  5.     when :ship
  6.       $game_map.ship_passable?(x, y)
  7.     when :airship
  8.       true
  9.     else
  10.       super
  11.     end
  12.   end


但是当我在执行flag2 = $game_player.map_passable(x, y, 2);这条语句时,弹出如下图所示的窗口,谁能告诉是怎么回事。


唉!感觉是哪个我不知道的地方出了问题。
作者: fux2    时间: 2013-12-24 20:32
你少了个问号,亲。




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1