赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 13512 |
最后登录 | 2022-5-16 |
在线时间 | 140 小时 |
Lv1.梦旅人 茄孓
- 梦石
- 0
- 星屑
- 72
- 在线时间
- 140 小时
- 注册时间
- 2007-5-29
- 帖子
- 956
|
- class Scene_Map
- def initialize
- @time = 0
- end
- alias old_update update
- def update
- @time += 1
- for event in $game_map.events.values
- a = 20
- if $game_map.events[event.id].x == $game_player.x-1 and $game_map.events[event.id].y == $game_player.y and $game_map.events[event.id].direction == 6
- if @time >= a
- event.start
- @time = 0
- end
- end
- if $game_map.events[event.id].x == $game_player.x+1 and $game_map.events[event.id].y == $game_player.y and $game_map.events[event.id].direction == 4
- if @time >= a
- event.start
- @time = 0
- end
- end
- if $game_map.events[event.id].x == $game_player.x and $game_map.events[event.id].y == $game_player.y-1 and $game_map.events[event.id].direction == 2
- if @time >= a
- event.start
- @time = 0
- end
- end
- if $game_map.events[event.id].x == $game_player.x and $game_map.events[event.id].y == $game_player.y+1 and $game_map.events[event.id].direction == 8
- if @time >= a
- event.start
- @time = 0
- end
- end
- old_update
- end
- end
- end
复制代码 这样就加快了哈,不过其他MS对方=也加快了。。。 |
|