Project1
标题: 问个问题跟随人物与主角一起跑步加速怎么弄? [打印本页]
作者: 希望の羽翼 时间: 2012-6-16 21:54
标题: 问个问题跟随人物与主角一起跑步加速怎么弄?
就是让后面跟随的人物一起按c键加速跑,我用的加速脚本如下,但是不能加速跟随人物的,很郁闷,请高手解答- #==============================================================================
- class Game_Player
- #--------------------------------------------------------------------------
- alias old_update update
- def update
- unless $game_system.map_interpreter.running? or
- @move_route_forcing or $game_temp.message_window_showing
- if Input.press?(Input::C)and $game_switches[3]
- if moving?
- if @move_speed != 5
- @move_speed = 5
- @character_name_run = @character_name
- @character_name = @character_name + "跑步"
- end
- end
- else
- if @move_speed != 4
- @move_speed = 4
- @character_name = @character_name_run
- end
- end
- end
- old_update
- end
- end
复制代码