The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: The Masked Loser on April 15, 2007, 03:29:30 PM

Title: Running/Supernatural Dashing Script
Post by: The Masked Loser on April 15, 2007, 03:29:30 PM
Post this above Main
I deserve no credit for this, I just made it usable outside of test play, the original script is here http://www.gamebaker.com/rmxp/scripts/map-rush.htm# (http://www.gamebaker.com/rmxp/scripts/map-rush.htm#)
Note: You will go through anything during test play if you hold the Ctrl key
[spoiler]
class Game_Character
  alias sandgolem_maprush_char_updmove update_move
  def update_move
    if self.is_a?(Game_Player) && Input.press?(Input::CTRL)
      if Input.press?(Input::ALT)
        @move_speed += 6
        @opacity = 0
        sandgolem_maprush_char_updmove
        @move_speed -= 6
      else
    end
        @move_speed += 0.5
        @opacity = 255
        sandgolem_maprush_char_updmove
        @move_speed -= 0.5
      end
    else
      sandgolem_maprush_char_updmove
        @opacity = 255
    end
  end


[/spoiler]

Instructions:
[spoiler]
Ctrl=Run
Ctrl+Alt=Supernatural Dash
[/spoiler]