本帖最后由 铅笔描绘的思念 于 2012-6-8 15:34 编辑
说实话。。。没见过这么奇怪的设定。。。
脚本。。插main前
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
|