在新窗口中打开脚本页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| $VIPArcherScript ||= {};$VIPArcherScript[:map_scroll] = 20150503 class Game_Interpreter def start_scroll(direction, distance, speed) Fiber.yield while $game_map.scrolling? $game_map.start_scroll(direction, distance, speed) end end class Game_Map alias do_scroll_dir8_extra do_scroll def do_scroll(direction, distance) do_scroll_dir8_extra(direction, distance) case direction when 1; scroll_down (distance);scroll_left (distance) when 3; scroll_down (distance);scroll_right(distance) when 7; scroll_up (distance);scroll_left (distance) when 9; scroll_up (distance);scroll_right(distance) else end end end
|