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.
Stop player from running when pressing down shift.(Resolved)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 86
For Good RPG Games!
When you press and hold shift, it allows the player to run.(This is a default thing from Rpg Maker VX.) What I want is to have this whole thing eliminated so that the player can't run at all. All in all, what I'm asking is how to turn off this script so that holding the shift key or any other button wouldn't allow the player to run.

Thank you,
Theodie12345
« Last Edit: January 14, 2009, 11:22:07 PM by Theodie12345 »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, you can disable dashing by checking a box when you set the properties of a map.

**
Rep:
Level 86
For Good RPG Games!
I didn't know what dashing was in the first place, heh. Thank you.

*
Rep: +0/-0Level 84
What about if you hold down SHIFT(Input::A) and then press UP or DOWN, can you disable dash only for this two directions, and the others keep dashing and animating?

**
Rep:
Level 87
No rain, no rainbow.
I didn't know what dashing was in the first place, heh. Thank you.
Dashing => running
Like a Modern Algebra says, you can disable it by checking a box in map properites...
Sorry for my stupid English, I'm from Slovakia :)

Craftknight's rule
Story: 23%
Maps: 4%
Systems: 5%

**
Rep: +0/-0Level 85
While this has been necroposted already... I might as well post this bit of code:
Code: [Select]
#=============================================================================#
# # #                            ANTI DASH HACK                           # # #
# # #                              By AmIMeYet                            # # #
# # #                           please credit me                          # # #
#=============================================================================#
class Game_Player < Game_Character
  def dash?
    return false if @move_route_forcing
    return false if in_vehicle?
    return true if Input.press?(Input::A) and $game_map.disable_dash?
  end
 end
This snippet basically inverts the dashing.. allowing you to dash only when 'disable dashing' is checked.
This way, normal maps disable dashing, but the ones you set to disable actually allow dashing..

It should be placed where you normally place the scripts ('above main', in the materials section of the scripts window)..

Portals - in VX!
Spoiler for Do require's in VX::
Code: [Select]
$LOAD_PATH << Dir.getwd #You only need to call this once
Kernel.require("includable.rb") #replace includable.rb with the name of the file you want to load
Spoiler for Invert Dash enabling::
Code: [Select]
#=============================================================================#
# # # ANTI DASH HACK    # # #
# # #   By AmIMeYet # # #
# # #    please credit me   # # #
#=============================================================================#
class Game_Player < Game_Character
  def dash?
return false if @move_route_forcing
return false if in_vehicle?
return true if Input.press?(Input::A) and $game_map.disable_dash?
  end
 end
This snippet basically inverts the dashing.. allowing you to dash only when 'disable dashing' is checked.
This way, normal maps disable dashing, but the ones you set to disable actually allow dashing..

It should be placed where you normally place the scripts ('above main', in the materials section of the scripts window)..

**
Rep:
Level 84
that was a cool idea amimeyet :D grabbed it for my game thanks

**
Rep: +0/-0Level 85
Glad you like it :)

Portals - in VX!
Spoiler for Do require's in VX::
Code: [Select]
$LOAD_PATH << Dir.getwd #You only need to call this once
Kernel.require("includable.rb") #replace includable.rb with the name of the file you want to load
Spoiler for Invert Dash enabling::
Code: [Select]
#=============================================================================#
# # # ANTI DASH HACK    # # #
# # #   By AmIMeYet # # #
# # #    please credit me   # # #
#=============================================================================#
class Game_Player < Game_Character
  def dash?
return false if @move_route_forcing
return false if in_vehicle?
return true if Input.press?(Input::A) and $game_map.disable_dash?
  end
 end
This snippet basically inverts the dashing.. allowing you to dash only when 'disable dashing' is checked.
This way, normal maps disable dashing, but the ones you set to disable actually allow dashing..

It should be placed where you normally place the scripts ('above main', in the materials section of the scripts window)..