VX Jump Bug Fix
By: Gustavo Bicalho
Introduction
Well, a friend of mine just noticed that if you try to jump onto a impassable place on VX, it lets you do that. At the other RPG Makers the impossible jump waits untill it can be completed (may be never) or is ignored (if the ignore option is selected at the move event command), just like a normal move.
This little code makes VX jumps work like jumps from the older versions.
Script
Instructions
Paste the code anywhere above Main and below Game_Character.
The constant JUMP_IN_PLACE_IF_IMPOSSIBLE allows a behavior modification: when you set it to true, if the jump is impossible the player will just jump in place. This is not the behavior you would expect at the older RM's, but I think it may be useful XD
Terms and Conditions
Use it as you wish, credits would be appreciated.
By: Gustavo Bicalho
Introduction
Well, a friend of mine just noticed that if you try to jump onto a impassable place on VX, it lets you do that. At the other RPG Makers the impossible jump waits untill it can be completed (may be never) or is ignored (if the ignore option is selected at the move event command), just like a normal move.
This little code makes VX jumps work like jumps from the older versions.
Script
Code:
#==============================================================================
# VX Jump Bug Fix
#------------------------------------------------------------------------------
# Author: Gustavo Bicalho
#==============================================================================
class Game_Character
JUMP_IN_PLACE_IF_IMPOSSIBLE = false
alias :gus_jumpfix_jump :jump
def jump(x_plus, y_plus)
if !passable?(@x+x_plus, @y+y_plus)
return gus_jumpfix_jump(0,0) if (JUMP_IN_PLACE_IF_IMPOSSIBLE)
@move_failed = true
return
end
gus_jumpfix_jump(x_plus, y_plus)
end
end
Instructions
Paste the code anywhere above Main and below Game_Character.
The constant JUMP_IN_PLACE_IF_IMPOSSIBLE allows a behavior modification: when you set it to true, if the jump is impossible the player will just jump in place. This is not the behavior you would expect at the older RM's, but I think it may be useful XD
Terms and Conditions
Use it as you wish, credits would be appreciated.