class Game_Player < Game_Character
#--------------------------------------------------------------------------
# ● 方向键移动处理
#--------------------------------------------------------------------------
def move_by_input
return if !movable? || $game_map.interpreter.running?
if $game_switches[10] == true#如果10开关打开 #10 改成你想要的开关
case Input.dir4
when 2; move_straight(8)
when 4; move_straight(6)
when 6; move_straight(4)
when 8; move_straight(2)
end
else
case Input.dir4
when 2; move_straight(2)
when 4; move_straight(4)
when 6; move_straight(6)
when 8; move_straight(8)
end
end
end
end
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# ● 方向键移动处理
#--------------------------------------------------------------------------
def move_by_input
return if !movable? || $game_map.interpreter.running?
if $game_switches[10] == true#如果10开关打开 #10 改成你想要的开关
case Input.dir4
when 2; move_straight(8)
when 4; move_straight(6)
when 6; move_straight(4)
when 8; move_straight(2)
end
else
case Input.dir4
when 2; move_straight(2)
when 4; move_straight(4)
when 6; move_straight(6)
when 8; move_straight(8)
end
end
end
end