■ このスレッドは過去ログ倉庫に格納されています
RPGツクールスレ
- 124 :以下、?ちゃんねるからVIPがお送りします :2021/08/09(月) 22:07:01.426 ID:/FvyUbL70.net
- >>105
原因と対処法は分かったけどなんでMVで許されてるのかが分からなかった
とりあえず今回の例では強制行動からの復帰時にプレイヤ限定で@move_routeにnilが入るのが原因だな
対処法は普通にnilチェックをif文に加えれば良いだけ
class Game_CharacterBase
#--------------------------------------------------------------------------
# ○ フレーム更新
#--------------------------------------------------------------------------
def update
update_animation
if jumping?
update_jump
elsif moving?
update_move
end
update_stop if stopping?
end
end
class Game_Character < Game_CharacterBase
#--------------------------------------------------------------------------
# ○ 移動ルートの実行位置を進める
#--------------------------------------------------------------------------
alias :_old_advance_move_route_index :advance_move_route_index
def advance_move_route_index
_old_advance_move_route_index
@move_route_index = 0 if @move_route && @move_route.repeat && @move_route.list.size - 1 <= @move_route_index
end
end
総レス数 299
57 KB
新着レスの表示
掲示板に戻る
全部
前100
次100
最新50
read.cgi ver 2014.07.20.01.SC 2014/07/20 D ★