class Scene_Map
alias old update
def update
if $game_switches[1] == false
@by = 32 #感应鼠标边缘的范围
@speed = 32 #移动速度
mx,my = Mouse.get_mouse_pos
move_r if mx>640-@by
move_l if mx<@by
move_u if my<@by
move_d if my>480-@by
old
end
def move_r
$game_map.scroll_right(@speed)
end
def move_l
$game_map.scroll_left(@speed)
end
def move_u
$game_map.scroll_up(@speed)
end
def move_d
$game_map.scroll_down(@speed)
end
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |