Haflway opacity with bush

Hi everyone, been following threads without an account for a while, but now I'm having an issue myself. I'm trying to make the opacity of the half body completely invisible when walking in trees outside on my world map.  In the Game_CharacterBase script, theres a part that controls the height, but not the opacity level.

I've attached a picture of what I'm trying to achieve.

bush_issue.gif
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


If there's not any code that covers the opacity itself, it's probably part of the hidden Sprite class that we don't have code for. I can't check now as I don't have Ace with me.
I myself have been tring to solve this. If you try and change the opacity of the grass, it ends up doing so for the whole 32x32 tile. So you end up with grass covering the whole player. 
RGSS 2 and 3 have Sprite#bush_opacity / Sprite#bush_opacity=. However that attribute isn't used by the default VX Ace scripts. You have to modify Game_CharacterBase and Sprite_Character.
This scriptlet should work :

Spoiler
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  endend # 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
Thanks!! This is exactly what I needed. Wow, i've trying to solve this for 2 months now. Thanks you!

Original thread: https://forums.rpgmakerweb.com/threads/haflway-opacity-with-bush.42591/