I don't care for the default functionality of bushes in VX Ace. I'd prefer it if when standing in a bush it completely obscures the character sprite's feet. I figured I could do this in the script editor by changing some opacity value to 0, but can't find anything that seems to work.
Change bush opacity to 0
RPG Maker VXAce SupportTry this scriptlet by Ossra, I fixed code format.
Source- https://forums.rpgmakerweb.com/index.php?threads/haflway-opacity-with-bush.42591/#post-420915
Code:
#==============================================================================
# ** Game_CharacterBase
#==============================================================================
class Game_CharacterBase
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :bush_opacity # bush_opacity
#--------------------------------------------------------------------------
# * ALIAS - Initialize Public Member Variables
#--------------------------------------------------------------------------
unless method_defined?(:bush_HtCDOT4g_gcb_init_public_members)
alias_method(:bush_HtCDOT4g_gcb_init_public_members, :init_public_members)
end
def init_public_members(*args, &block)
bush_HtCDOT4g_gcb_init_public_members(*args, &block)
# Default 'bush_opacity' is 128; Maximum is 255
@bush_opacity = 0
end
end # Game_CharacterBase
#==============================================================================
# ** Sprite_Character
#==============================================================================
class Sprite_Character < Sprite_Base
#--------------------------------------------------------------------------
# * ALIAS - Update Other
#--------------------------------------------------------------------------
unless method_defined?(:bush_GOpkYjh1_sc_update_other)
alias_method(:bush_GOpkYjh1_sc_update_other, :update_other)
end
def update_other(*args, &block)
bush_GOpkYjh1_sc_update_other(*args, &block)
self.bush_opacity = @character.bush_opacity
end
end # Sprite_Character
Source- https://forums.rpgmakerweb.com/index.php?threads/haflway-opacity-with-bush.42591/#post-420915
Thanks! Worked like a charm.
Original thread: https://forums.rpgmakerweb.com/threads/change-bush-opacity-to-0.145187/