RPGXP スクリプト

game testplay 테스트중 게임속도 상승 스크립트

by 부초 posted Sep 24, 2013
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

ESC閉じる

Larger Font Smaller Font 上へ 下へ Go comment 印刷
출처: http://members.jcom.home.ne.jp/cogwheel/

게임 테스트 도중 shift를 누르면 게임속도가 대폭 상승합니다.

사용법은 밑에있는 글을 그대로 복사해서 스크립트에 붙여넣으면 됩니다.




# テストプレ?高速化?? Ver 1.01
# 配布元?サポ?トURL
# http://members.jcom.home.ne.jp/cogwheel/

#==============================================================================
# ■ Graphics
#------------------------------------------------------------------------------
#  グラフィック全般の?理を行うクラスです。
#==============================================================================

class << Graphics
  # update_speed が定義されていない場合、updateメソッドの再定義を行う
  alias :update_speed :update unless method_defined?("update_speed")
  #--------------------------------------------------------------------------
  # ● フレ?ム更新
  #--------------------------------------------------------------------------
  def update
    # シフトが押下され、かつフレ?ムカウントが 3 の倍?でない時
    if $DEBUG and Input.press?(Input::SHIFT) and Graphics.frame_count % 3 > 0
      # グラフィックの更新をせず、カウントだけ加算する
      Graphics.frame_count += 1
    # シフトが押下されていないか、フレ?ムカウントが 3 の倍?の時
    else
      # グラフィックの更新を行う
      update_speed
    end
  end
end