@move_list.each_index do |i|
if @characters != nil
case @move_list.type
when Input::DOWN
@characters.move_down(@move_list.args[0])
when Input::LEFT
@characters.move_left(@move_list.args[0])
when Input::RIGHT
@characters.move_right(@move_list.args[0])
when Input::UP
@characters.move_up(@move_list.args[0])
when DOWN_LEFT
@characters.move_lower_left
when DOWN_RIGHT
@characters.move_lower_right
when UP_LEFT
@characters.move_upper_left
when UP_RIGHT
@characters.move_upper_right
when JUMP
@characters.jump(@move_list.args[0],@move_list.args[1])
end
if i == 0
$第二人x坐标 = @characters.x
$第二人y坐标 = @characters.y
elsif i == 1
$第三人x坐标 = @characters.x
$第三人y坐标 = @characters.y
end
end
end
以下引用kula1900于2009-5-4 10:25:21的发言:
if i == 0
$第二人x坐标 = @characters.x
$第二人y坐标 = @characters.y
$第二人朝向 = @character.direction
elsif i == 1
$第三人x坐标 = @characters.x
$第三人y坐标 = @characters.y
$第三人朝向 = @character.direction
end
加入朝向就不对了嘛~~高手 怎么回错了?? 说[]for nil = nilclass
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |