RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Dash script.

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 89
Sexy..
Dont know if anyone wants this but it will work fine with the Diagonal movement script

 
Code: [Select]
#==============================================================================
# ++ グラフィック変更ダッシュ ver. 1.21 ++
#  Script by パラ犬
#  http://para.j-mx.com/
#------------------------------------------------------------------------------
# 「Graphics/Characters」フォルダに
# 「(先頭キャラの歩行グラフィック名)+_dash」という名前のファイルがある場合
# ダッシュ時のグラフィックとして使用します。(例:001-Fighter01_dash)
#==============================================================================

class Game_Player < Game_Character

  SPEED_DASH = 5  # ダッシュ時の移動速度
  SPEED_NORMAL = 4  # 通常の移動速度

  # ダッシュに使うボタン(表記方法は、Input::(ボタン))
  #(キーボードとの対応表はツクールのヘルプにあります)
  KEY_DASH = Input::A

  # "_dash"グラフィックが存在しない場合ダッシュをするか( true:する / false:しない )
  NO_FILE_DASH = true
 
  # 静止時はグラフィックを変更しない( true:変更しない / false:変更する )
  CHANGE_IN_MOVING = false
 
  # ダッシュ禁止イベントスイッチID
  # (イベントコマンド「スイッチの操作」でこの番号のスイッチをONにしている間は
  #  ãƒ€ãƒƒã‚·ãƒ¥ã‚’機能を無効にします)
  NO_DASH_SWITCH = 999

end

#==============================================================================
# â–  Game_Player
#==============================================================================

class Game_Player < Game_Character

  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  alias dash_update update
  def update
    # イベント実行中、移動ルート強制中、
    # メッセージウィンドウ表示中のいずれでもない場合
    unless $game_system.map_interpreter.running? or
           @move_route_forcing or $game_temp.message_window_showing
      if !($game_switches[NO_DASH_SWITCH])
        # キー判定
        if Input.press?(KEY_DASH) and (CHANGE_IN_MOVING == false or Input.dir8 != 0)
          if (dash_graphic_exist?($game_party.actors[0]) or NO_FILE_DASH)
            # ダッシュ中でなければダッシュ
            if @move_speed != SPEED_DASH
              @move_speed = SPEED_DASH
              @dash_on = true
              $game_player.refresh
            end
          end
        elsif @dash_on == nil or @dash_on
            @move_speed = SPEED_NORMAL
            @dash_on = nil
            $game_player.refresh
        end
      end
    end
    dash_update
  end
  #--------------------------------------------------------------------------
  # â—‹ ダッシュグラフィックの有無をチェック
  #--------------------------------------------------------------------------
  def dash_graphic_exist?(actor)    
    # 読み込みテスト
    begin
      RPG::Cache.character(actor.character_name.to_s + "_dash", actor.character_hue)
    rescue
      return false
    end
    return true
  end
  #--------------------------------------------------------------------------
  # ● リフレッシュ
  #--------------------------------------------------------------------------
  alias dash_refresh refresh
  def refresh
    dash_refresh
    # パーティ人数が 0 人でない場合
    if $game_party.actors.size != 0
      actor = $game_party.actors[0]
      # キャラクターのファイル名と色相を設定
      if @dash_on and dash_graphic_exist?(actor)
        fileplus = "_dash"
      else
        fileplus = ""
      end
      @character_name = actor.character_name + fileplus
      @character_hue = actor.character_hue
    end
  end
end


And you will be needing this too


Just import the pic to Characters and hold shift to run.
Credits dont go to me but some japanese guy.

100% sexy.

**
Rep:
Level 89
Developer
exelent script!
<3 phenom
<3 Hypnotic

***
Rep:
Level 89
Koopa Troopa!
does it matter if its in japaness?

****
Rep:
Level 90
No! (You spelt Japanese wrong!)

****
Rep:
Level 89
This should be integrated with stamina, otherwise he could be running forever.

***
Rep:
Level 89
Koopa Troopa!
sorry pieman  :oops:

LOL cool nickname..
Pie Man..

*
Rep: +0/-0Level 89
where do u put this script?

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Quote from: speedslayer2
where do u put this script?

Open the script editor and scroll down til "Main". Click on Main and choose "Insert". Below you can enter a name like "Dash script" or something. Just paste the whole script-code up there into the empty window to the right. :^^: Got it?
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!