Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Stand/ Walk/ Run Script

Hello Everybody!

I cannot find this script, so I must be daft!! But I now I used to have it! t is a Stand/Walk/Run script, it was by Matte (I think) and it was a very nice little script.

For it to be effective, the sprites had to have an extension of _stand or _run. It did not otherwise interfere with the operation of RMXP. And it used a certain key to initiate running.

Anyone know where to find this? Have I overlooked it somehow? It's rather important that I find it, so any help here would be greatly appreciated.

Thanks!!

CSkye
 

Hyde

Member

The best I can offer you is a simple run script.
Code:
class Game_Player
  alias dash_update update
  def update
    unless moving? or $game_system.map_interpreter.running? or
           @move_route_forcing or $game_temp.message_window_showing
      if Input.press?(Input::C) #The key you push to initiate
        @move_speed = 5 #Sets running speed
      else
        @move_speed = 4 #Sets walking speed
      end
    end
    dash_update
  end
end
Hold 'Shift' to run.
 
Whats with all that unless moving stuff? it doesn't need that.
Hyde":d0um1bsm said:
    unless moving? or $game_system.map_interpreter.running? or
          @move_route_forcing or $game_temp.message_window_showing

All it needs is the rest
Code:
class Game_Player
  alias krypt_gameplayer update
  
  def update
    krypt_gameplayer
    if Input.press?(Input::C) # keyboard keys |SPACE|, |ENTER| and |C|
      @move_speed = 4
    else
      @move_speed = 3
    end
   krypt_gameplayer
 end
end

I think Cerulean Skye is talking about an animated run script.
 

khmp

Sponsor

Please don't necro topics nuhto. Anyway insert is option that is selectable when you right click the script listing section. That's the listbox on the left when the script editor is open. Script installation is also made mention in the RGSS FAQ of this section.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top