# 如果按下跑步按鍵
if Input.press?(Follower_Set::Input_Run) and $game_system.run_switch
# 如果設定的數為小數點
if !Follower_Set::Follow_Run_Speed[$game_party.actors[0].name].integer?
# 將速度轉成浮點數
@move_speed.to_f
else
# 將速度轉成整數
@move_speed.to_i
end
# 切換到跑步速度
@move_speed = Follower_Set::Follow_Run_Speed[$game_party.actors[0].name]
# 設定變量
@running = true
else
# 如果設定的數為小數點
if !Follower_Set::Follow_Walk_Speed[$game_party.actors[0].name].integer?
@move_speed.to_f
else
# 將速度轉成整數
@move_speed.to_i
end
# 切換到行走速度
@move_speed = Follower_Set::Follow_Walk_Speed[$game_party.actors[0].name]
# 設定變量
@running = false
end
if Input.press?(Follower_Set::Input_Run) and $game_system.run_switch @move_speed = Follower_Set::Follow_Run_Speed[$game_party.actors[0].name] @running = true else @move_speed = Follower_Set::Follow_Walk_Speed[$game_party.actors[0].name] @running = false end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |