赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 0 |
经验 | 0 |
最后登录 | 2011-7-18 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 385
- 在线时间
- 0 小时
- 注册时间
- 2009-8-19
- 帖子
- 1
|
好是好哎
但是 #--------------------------------------------------------------------------
# ● 检测player周围是否存在事件(返回id)
#--------------------------------------------------------------------------
def check_player_around(dir)
id = 0
@events.each do |key,value|
case dir
when 2
if (value.x == $game_player.x and value.y == $game_player.y+1)
id = key
break
end
when 4
if (value.x == $game_player.x-1 and value.y == $game_player.y)
id = key
break
end
when 6
if (value.x == $game_player.x+1 and value.y == $game_player.y)
id = key
break
end
when 8
if (value.x == $game_player.x+1 and value.y == $game_player.y-1)
id = key
break
end
end
end
return id
end
我就看不懂了 - - |
|