| 赞 | 4 |
| VIP | |
| 好人卡 | |
| 积分 | 7 |
| 经验 | |
| 最后登录 | 2013-8-9 |
| 在线时间 | 184 小时 |
天仙
- 梦石
- 0
- 星屑
- 720
- 在线时间
- 184 小时
- 注册时间
- 2008-4-15
- 回帖
- 4872

|
发表于 2008-12-11 03:52:08
|
显示全部楼层
class Game_Character
def direction=(d)
return unless [2, 4, 6, 8].include?(d)
@direction=d
end
end
然後調用腳本
例如:
$game_map.events[1].direction = 2/4/6/8 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|